summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2003-01-31 21:45:13 (GMT)
committerTim Peters <tim.peters@gmail.com>2003-01-31 21:45:13 (GMT)
commit08a1d9cafc5e713957d7ddd2b29ea75c3d073d96 (patch)
treeedd316c87c7b752622925372d17739903bbbf95d /Objects
parent8e0ad0cb0bec01a4216230d1003e24fe8c7ab3c7 (diff)
downloadcpython-08a1d9cafc5e713957d7ddd2b29ea75c3d073d96.zip
cpython-08a1d9cafc5e713957d7ddd2b29ea75c3d073d96.tar.gz
cpython-08a1d9cafc5e713957d7ddd2b29ea75c3d073d96.tar.bz2
Squash compiler wng about signed/unsigned comparison mismatch.
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 2279fc3..7835784 100644
--- a/Objects/longobject.c
+++ b/Objects/longobject.c
@@ -287,7 +287,7 @@ _PyLong_NumBits(PyObject *vv)
digit msd = v->ob_digit[ndigits - 1];
result = (ndigits - 1) * SHIFT;
- if (result / SHIFT != ndigits - 1)
+ if (result / SHIFT != (size_t)ndigits - 1)
goto Overflow;
do {
++result;