Changeset 23955 in webkit for trunk/JavaScriptCore/kjs


Ignore:
Timestamp:
Jul 3, 2007, 2:35:25 PM (18 years ago)
Author:
weinig
Message:

Reviewed by Brady Eidson.

Tenth round of fixes for implicit 64-32 bit conversion errors.
<rdar://problem/5292262>

  • Add explicit casts.
  • kjs/dtoa.cpp: (Bigint::):
File:
1 edited

Legend:

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

    r21064 r23955  
    596596                y = *x * (ULLong)m + carry;
    597597                carry = y >> 32;
    598                 *x++ = y & FFFFFFFF;
     598                *x++ = (ULong)y & FFFFFFFF;
    599599#else
    600600#ifdef Pack_32
     
    619619                        b = b1;
    620620                        }
    621                 b->x[wds++] = carry;
     621                b->x[wds++] = (ULong)carry;
    622622                b->wds = wds;
    623623                }
     
    810810                                z = *x++ * (ULLong)y + *xc + carry;
    811811                                carry = z >> 32;
    812                                 *xc++ = z & FFFFFFFF;
     812                                *xc++ = (ULong)z & FFFFFFFF;
    813813                                }
    814814                                while(x < xae);
    815                         *xc = carry;
     815                        *xc = (ULong)carry;
    816816                        }
    817817                }
     
    10731073                y = (ULLong)*xa++ - *xb++ - borrow;
    10741074                borrow = y >> 32 & (ULong)1;
    1075                 *xc++ = y & FFFFFFFF;
     1075                *xc++ = (ULong)y & FFFFFFFF;
    10761076                }
    10771077                while(xb < xbe);
     
    10791079                y = *xa++ - borrow;
    10801080                borrow = y >> 32 & (ULong)1;
    1081                 *xc++ = y & FFFFFFFF;
     1081                *xc++ = (ULong)y & FFFFFFFF;
    10821082                }
    10831083#else
     
    24702470                        y = *bx - (ys & FFFFFFFF) - borrow;
    24712471                        borrow = y >> 32 & (ULong)1;
    2472                         *bx++ = y & FFFFFFFF;
     2472                        *bx++ = (ULong)y & FFFFFFFF;
    24732473#else
    24742474#ifdef Pack_32
     
    25112511                        y = *bx - (ys & FFFFFFFF) - borrow;
    25122512                        borrow = y >> 32 & (ULong)1;
    2513                         *bx++ = y & FFFFFFFF;
     2513                        *bx++ = (ULong)y & FFFFFFFF;
    25142514#else
    25152515#ifdef Pack_32
Note: See TracChangeset for help on using the changeset viewer.