Changeset 107625 in webkit for trunk/Source/JavaScriptCore/runtime/JSGlobalObjectFunctions.cpp
- Timestamp:
- Feb 13, 2012, 3:38:44 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/JSGlobalObjectFunctions.cpp
r107544 r107625 298 298 if (number >= mantissaOverflowLowerBound) { 299 299 if (radix == 10) 300 number = WTF::strtod (s.substringSharingImpl(firstDigitPosition, p - firstDigitPosition).utf8().data(), 0);300 number = WTF::strtod<WTF::AllowTrailingJunk>(s.substringSharingImpl(firstDigitPosition, p - firstDigitPosition).utf8().data(), 0); 301 301 else if (radix == 2 || radix == 4 || radix == 8 || radix == 16 || radix == 32) 302 302 number = parseIntOverflow(s.substringSharingImpl(firstDigitPosition, p - firstDigitPosition).utf8().data(), p - firstDigitPosition, radix); … … 370 370 byteBuffer.append(0); 371 371 char* endOfNumber; 372 double number = WTF::strtod (byteBuffer.data(), &endOfNumber);372 double number = WTF::strtod<WTF::AllowTrailingJunk>(byteBuffer.data(), &endOfNumber); 373 373 374 374 // Check if strtod found a number; if so return it.
Note:
See TracChangeset
for help on using the changeset viewer.