Changeset 43457 in webkit for trunk/JavaScriptCore/runtime/UString.cpp
- Timestamp:
- May 10, 2009, 4:32:31 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/UString.cpp
r43383 r43457 799 799 int sign; 800 800 801 char* result = WTF::dtoa(d, 0, &decimalPoint, &sign, NULL); 801 char result[80]; 802 WTF::dtoa(result, d, 0, &decimalPoint, &sign, NULL); 802 803 int length = static_cast<int>(strlen(result)); 803 804 … … 850 851 } 851 852 852 WTF::freedtoa(result); 853 854 return concatenate(rep, buf); 853 return concatenate(rep, buf); 855 854 } 856 855 … … 940 939 int decimalPoint; 941 940 int sign; 942 943 char* result = WTF::dtoa(d, 0, &decimalPoint, &sign, NULL); 941 942 char result[80]; 943 WTF::dtoa(result, d, 0, &decimalPoint, &sign, NULL); 944 944 int length = static_cast<int>(strlen(result)); 945 945 … … 992 992 } 993 993 994 WTF::freedtoa(result); 995 996 return UString(buf); 994 return UString(buf); 997 995 } 998 996
Note:
See TracChangeset
for help on using the changeset viewer.