Skip to content

Commit 938b0b9

Browse files
committed
Fix compiler warning in dtoa.c
1 parent 59f7fb2 commit 938b0b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Python/dtoa.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ Balloc(int k)
373373
x = 1 << k;
374374
len = (sizeof(Bigint) + (x-1)*sizeof(ULong) + sizeof(double) - 1)
375375
/sizeof(double);
376-
if (k <= Kmax && pmem_next - private_mem + len <= PRIVATE_mem) {
376+
if (k <= Kmax && pmem_next - private_mem + len <= (Py_ssize_t)PRIVATE_mem) {
377377
rv = (Bigint*)pmem_next;
378378
pmem_next += len;
379379
}
@@ -1087,7 +1087,7 @@ sd2b(U *d, int scale, int *e)
10871087
b = Balloc(1);
10881088
if (b == NULL)
10891089
return NULL;
1090-
1090+
10911091
/* First construct b and e assuming that scale == 0. */
10921092
b->wds = 2;
10931093
b->x[0] = word1(d);

0 commit comments

Comments
 (0)