Changeset 43472 in webkit for trunk/JavaScriptCore


Ignore:
Timestamp:
May 10, 2009, 3:46:23 PM (16 years ago)
Author:
Darin Adler
Message:

2009-05-10 Darin Adler <Darin Adler>

Reviewed by Maciej Stachowiak.

Quick fix for failures seen on buildbot. Maciej plans a better fix later.

  • wtf/dtoa.cpp: Change the hardcoded number of 32-bit words in a BigInt from 32 to 64. Parsing "1e500", for example, requires more than 32 words.
Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r43471 r43472  
     12009-05-10  Darin Adler  <[email protected]>
     2
     3        Reviewed by Maciej Stachowiak.
     4
     5        Quick fix for failures seen on buildbot. Maciej plans a better fix later.
     6
     7        * wtf/dtoa.cpp: Change the hardcoded number of 32-bit words in a BigInt
     8        from 32 to 64. Parsing "1e500", for example, requires more than 32 words.
     9
    1102009-05-10  Darin Adler  <[email protected]>
    211
  • trunk/JavaScriptCore/wtf/dtoa.cpp

    r43463 r43472  
    282282    BigInt(const BigInt& other) : sign(other.sign), wds(other.wds)
    283283    {
    284         for (int i = 0; i < 32; ++i)
     284        for (int i = 0; i < 64; ++i)
    285285            x[i] = other.x[i];
    286286    }
     
    290290        sign = other.sign;
    291291        wds = other.wds;
    292         for (int i = 0; i < 32; ++i)
     292        for (int i = 0; i < 64; ++i)
    293293            x[i] = other.x[i];       
    294294        return *this;
     
    297297    int sign;
    298298    int wds;
    299     uint32_t x[32];
     299    uint32_t x[64];
    300300};
    301301
Note: See TracChangeset for help on using the changeset viewer.