From: Victor Stinner Date: Wed, 18 Mar 2015 14:01:44 +0000 (+0100) Subject: Fix compiler warning in dtoa.c X-Git-Tag: v3.5.0a3~144 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=938b0b9feef243ef1085ce10d91994d7a70f3818;p=python Fix compiler warning in dtoa.c --- 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);