Mercurial > cpython-lru_cache-weakref
diff Python/dtoa.c @ 53207:fe99a562b708
Silence compiler warnings on VS8.0
| author | Mark Dickinson <dickinsm@gmail.com> |
|---|---|
| date | Fri, 17 Apr 2009 19:29:46 +0000 |
| parents | ab06a38b590c |
| children | 13a82a710f19 |
line wrap: on
line diff
--- a/Python/dtoa.c Fri Apr 17 18:58:06 2009 +0000 +++ b/Python/dtoa.c Fri Apr 17 19:29:46 2009 +0000 @@ -409,7 +409,7 @@ #ifdef ULLong y = *x * (ULLong)m + carry; carry = y >> 32; - *x++ = y & FFFFFFFF; + *x++ = (ULong)(y & FFFFFFFF); #else xi = *x; y = (xi & 0xffff) * m + carry; @@ -616,7 +616,7 @@ do { z = *x++ * (ULLong)y + *xc + carry; carry = z >> 32; - *xc++ = z & FFFFFFFF; + *xc++ = (ULong)(z & FFFFFFFF); } while(x < xae); *xc = (ULong)carry; @@ -846,13 +846,13 @@ 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 do { @@ -1097,7 +1097,7 @@ carry = ys >> 32; y = *bx - (ys & FFFFFFFF) - borrow; borrow = y >> 32 & (ULong)1; - *bx++ = y & FFFFFFFF; + *bx++ = (ULong)(y & FFFFFFFF); #else si = *sx++; ys = (si & 0xffff) * q + carry; @@ -1130,7 +1130,7 @@ carry = ys >> 32; y = *bx - (ys & FFFFFFFF) - borrow; borrow = y >> 32 & (ULong)1; - *bx++ = y & FFFFFFFF; + *bx++ = (ULong)(y & FFFFFFFF); #else si = *sx++; ys = (si & 0xffff) + carry;
