Changeset 48248 in webkit for trunk/JavaScriptCore/wtf
- Timestamp:
- Sep 10, 2009, 2:08:26 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/wtf/dtoa.cpp
r48247 r48248 1905 1905 *sign = 0; 1906 1906 1907 if ((word0(&u) & Exp_mask) == Exp_mask) { 1907 if ((word0(&u) & Exp_mask) == Exp_mask) 1908 { 1908 1909 /* Infinity or NaN */ 1909 1910 *decpt = 9999; 1910 if (!word1(&u) && !(word0(&u) & 0xfffff)) { 1911 strncpy(result, "Infinity", ndigits); 1912 result[ndigits] = '\0'; 1913 } else { 1914 strncpy(result, "NaN", ndigits); 1915 result[ndigits] = '\0'; 1916 } 1911 if (!word1(&u) && !(word0(&u) & 0xfffff)) 1912 strcpy(result, "Infinity"); 1913 else 1914 strcpy(result, "NaN"); 1917 1915 return; 1918 1916 }
Note:
See TracChangeset
for help on using the changeset viewer.