Reviewed by Brady Eidson.
authorweinig <weinig@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 3 Jul 2007 21:35:25 +0000 (21:35 +0000)
committerweinig <weinig@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 3 Jul 2007 21:35:25 +0000 (21:35 +0000)
        Tenth round of fixes for implicit 64-32 bit conversion errors.
        <rdar://problem/5292262>

        - Add explicit casts.

        * kjs/dtoa.cpp:
        (Bigint::):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23955 268f45cc-cd09-0410-ab3c-d52691b4dbfc

JavaScriptCore/ChangeLog
JavaScriptCore/kjs/dtoa.cpp

index 809bd000e8edf7934f6d45642b166f63d9639379..63e0dc801735bbedecb4ae3e570374a0fda570c0 100644 (file)
@@ -1,3 +1,15 @@
+2007-07-03  Sam Weinig  <sam@webkit.org>
+
+        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::):
+
 2007-07-02  Sam Weinig  <sam@webkit.org>
 
         Reviewed by Kevin McCullough.
index 75abbef8e50557d4126fbccda1d236d220e983fb..7c718aefdf5d260557c64591ff65992bcf17ce9a 100644 (file)
@@ -595,7 +595,7 @@ multadd
 #ifdef ULLong
                y = *x * (ULLong)m + carry;
                carry = y >> 32;
-               *x++ = y & FFFFFFFF;
+               *x++ = (ULong)y & FFFFFFFF;
 #else
 #ifdef Pack_32
                xi = *x;
@@ -618,7 +618,7 @@ multadd
                        Bfree(b);
                        b = b1;
                        }
-               b->x[wds++] = carry;
+               b->x[wds++] = (ULong)carry;
                b->wds = wds;
                }
        return b;
@@ -809,10 +809,10 @@ mult
                        do {
                                z = *x++ * (ULLong)y + *xc + carry;
                                carry = z >> 32;
-                               *xc++ = z & FFFFFFFF;
+                               *xc++ = (ULong)z & FFFFFFFF;
                                }
                                while(x < xae);
-                       *xc = carry;
+                       *xc = (ULong)carry;
                        }
                }
 #else
@@ -1072,13 +1072,13 @@ diff
        do {
                y = (ULLong)*xa++ - *xb++ - borrow;
                borrow = y >> 32 & (ULong)1;
-               *xc++ = y & FFFFFFFF;
+               *xc++ = (ULong)y & FFFFFFFF;
                }
                while(xb < xbe);
        while(xa < xae) {
                y = *xa++ - borrow;
                borrow = y >> 32 & (ULong)1;
-               *xc++ = y & FFFFFFFF;
+               *xc++ = (ULong)y & FFFFFFFF;
                }
 #else
 #ifdef Pack_32
@@ -2469,7 +2469,7 @@ quorem
                        carry = ys >> 32;
                        y = *bx - (ys & FFFFFFFF) - borrow;
                        borrow = y >> 32 & (ULong)1;
-                       *bx++ = y & FFFFFFFF;
+                       *bx++ = (ULong)y & FFFFFFFF;
 #else
 #ifdef Pack_32
                        si = *sx++;
@@ -2510,7 +2510,7 @@ quorem
                        carry = ys >> 32;
                        y = *bx - (ys & FFFFFFFF) - borrow;
                        borrow = y >> 32 & (ULong)1;
-                       *bx++ = y & FFFFFFFF;
+                       *bx++ = (ULong)y & FFFFFFFF;
 #else
 #ifdef Pack_32
                        si = *sx++;