summaryrefslogtreecommitdiffstats
path: root/Python/dtoa.c
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-04-17 19:29:46 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-04-17 19:29:46 (GMT)
commitfd2ad8b4f2c88cba76d6b2cbca92612fc3fc8b61 (patch)
tree5a0473408f8473b5724cde8b764cfa9082061a29 /Python/dtoa.c
parent0422e141557a8bb59a9634f205b49478e78b19f7 (diff)
downloadcpython-fd2ad8b4f2c88cba76d6b2cbca92612fc3fc8b61.zip
cpython-fd2ad8b4f2c88cba76d6b2cbca92612fc3fc8b61.tar.gz
cpython-fd2ad8b4f2c88cba76d6b2cbca92612fc3fc8b61.tar.bz2
Silence compiler warnings on VS8.0
Diffstat (limited to 'Python/dtoa.c')
-rw-r--r--Python/dtoa.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/Python/dtoa.c b/Python/dtoa.c
index 9d0f5e5..1d96304 100644
--- a/Python/dtoa.c
+++ b/Python/dtoa.c
@@ -409,7 +409,7 @@ multadd(Bigint *b, int m, int a) /* multiply by m and add a */
#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 @@ mult(Bigint *a, Bigint *b)
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 @@ diff(Bigint *a, Bigint *b)
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 @@ quorem(Bigint *b, Bigint *S)
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 @@ quorem(Bigint *b, Bigint *S)
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;