зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
2edfc4fd27
Коммит
656ced5924
|
@ -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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Загрузка…
Ссылка в новой задаче