]> granicus.if.org Git - python/commitdiff
Fix compiler warning in dtoa.c
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 18 Mar 2015 14:01:44 +0000 (15:01 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Wed, 18 Mar 2015 14:01:44 +0000 (15:01 +0100)
Python/dtoa.c

index 8996a7210c0bd302eee70e64c042f6707ad278f1..3da546ed0709e5be7984857045ac000f848eee14 100644 (file)
@@ -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);