[Python-checkins] cpython: Fix compiler warning in dtoa.c
victor.stinner
python-checkins at python.org
Wed Mar 18 16:05:49 CET 2015
https://hg.python.org/cpython/rev/f7c129f63922
changeset: 95043:f7c129f63922
user: Victor Stinner <victor.stinner at gmail.com>
date: Wed Mar 18 15:01:44 2015 +0100
summary:
Fix compiler warning in dtoa.c
files:
Python/dtoa.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Python/dtoa.c b/Python/dtoa.c
--- a/Python/dtoa.c
+++ b/Python/dtoa.c
@@ -373,7 +373,7 @@
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 @@
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);
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list