fixed bug #1203
git-svn-id: svn://10.0.0.236/trunk@15260 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -588,6 +588,9 @@ PRInt32 nsString::ToInteger(PRInt32* aErrorCode,PRInt32 aRadix) const {
|
||||
result=-result;
|
||||
break;
|
||||
}
|
||||
else if('+'==theChar) {
|
||||
break;
|
||||
}
|
||||
else{
|
||||
*aErrorCode=NS_ERROR_ILLEGAL_VALUE;
|
||||
result=0;
|
||||
|
||||
Reference in New Issue
Block a user