Bugzilla Bug 88747 nsCRT::atoi should be removed or fixed

previous definition just recursed infinitely. |::atoi| takes a |char*|.
r=dbradley sr=scc
This commit is contained in:
timeless%mac.com 2001-07-13 05:17:33 +00:00
Родитель 2edfc4fd27
Коммит 656ced5924
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -645,9 +645,9 @@ PRUint32 nsCRT::BufferHashCode(const char* s, PRUint32 len)
return h;
}
PRInt32 nsCRT::atoi( const PRUnichar *string )
PRInt32 nsCRT::atoi( const PRUnichar *aString )
{
return atoi(string);
return ::atoi(NS_ConvertUCS2toUTF8(aString).get());
}
/**