diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-03-18 15:01:44 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-03-18 15:01:44 +0100 |
commit | 8f57187fa3e0a3e5840175c4a2af09b98c10f744 (patch) | |
tree | 7118e1f8238380d679f4e110598b3d0efd694ed5 /Python/dtoa.c | |
parent | cb2d306857151476ebbd659e3ef135d523455f23 (diff) | |
download | cpython-8f57187fa3e0a3e5840175c4a2af09b98c10f744.tar.gz |
Fix compiler warning in dtoa.c
Diffstat (limited to 'Python/dtoa.c')
-rw-r--r-- | Python/dtoa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/dtoa.c b/Python/dtoa.c index 8996a7210c..3da546ed07 100644 --- a/Python/dtoa.c +++ b/Python/dtoa.c @@ -373,7 +373,7 @@ Balloc(int k) x = 1 << k; len = (sizeof(Bigint) + (x-1)*sizeof(ULong) + sizeof(double) - 1) /sizeof(double); - if (k <= Kmax && pmem_next - private_mem + len <= PRIVATE_mem) { + if (k <= Kmax && pmem_next - private_mem + len <= (Py_ssize_t)PRIVATE_mem) { rv = (Bigint*)pmem_next; pmem_next += len; } @@ -1087,7 +1087,7 @@ sd2b(U *d, int scale, int *e) b = Balloc(1); if (b == NULL) return NULL; - + /* First construct b and e assuming that scale == 0. */ b->wds = 2; b->x[0] = word1(d); |