summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2010-04-06 18:58:54 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2010-04-06 18:58:54 (GMT)
commitea7e5510aa6d42bd8f7fcc2f22fea972f2b5c8c7 (patch)
tree5ee9a325e11546e675e65c1939d18a774ecb1280 /Objects
parenta5db4310f312727b49f5ea5d32e575be6b91bdf8 (diff)
downloadcpython-ea7e5510aa6d42bd8f7fcc2f22fea972f2b5c8c7.zip
cpython-ea7e5510aa6d42bd8f7fcc2f22fea972f2b5c8c7.tar.gz
cpython-ea7e5510aa6d42bd8f7fcc2f22fea972f2b5c8c7.tar.bz2
Silence a 'comparison between signed and unsigned integer expressions' gcc warning.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/longobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c
index 0e6e4e3..78a7792 100644
--- a/Objects/longobject.c
+++ b/Objects/longobject.c
@@ -2278,7 +2278,7 @@ _PyLong_Frexp(PyLongObject *a, Py_ssize_t *e)
break;
}
}
- assert(1 <= x_size && x_size <= sizeof(x_digits)/sizeof(digit));
+ assert(1 <= x_size && x_size <= (Py_ssize_t)(sizeof(x_digits)/sizeof(digit)));
/* Round, and convert to double. */
x_digits[0] += half_even_correction[x_digits[0] & 7];