Changeset 48248 in webkit for trunk/JavaScriptCore/wtf


Ignore:
Timestamp:
Sep 10, 2009, 2:08:26 AM (16 years ago)
Author:
[email protected]
Message:

2009-09-10 Adam Barth <[email protected]>

Unreviewed revert of the previous change. It broke the tests.

  • wtf/dtoa.cpp: (WTF::dtoa):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/wtf/dtoa.cpp

    r48247 r48248  
    19051905        *sign = 0;
    19061906
    1907     if ((word0(&u) & Exp_mask) == Exp_mask) {
     1907    if ((word0(&u) & Exp_mask) == Exp_mask)
     1908    {
    19081909        /* Infinity or NaN */
    19091910        *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");
    19171915        return;
    19181916    }
Note: See TracChangeset for help on using the changeset viewer.