summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2003-02-02 08:05:32 (GMT)
committerTim Peters <tim.peters@gmail.com>2003-02-02 08:05:32 (GMT)
commitefb9625b81c87330742e49b1df9595634583f7a8 (patch)
treeeb9371306047fda16a5010ae588cb9079590e967
parentbf2674be0e95787cdeb154091b7377e30b2827bf (diff)
downloadcpython-efb9625b81c87330742e49b1df9595634583f7a8.zip
cpython-efb9625b81c87330742e49b1df9595634583f7a8.tar.gz
cpython-efb9625b81c87330742e49b1df9595634583f7a8.tar.bz2
Tightened a too-generous assert.
-rw-r--r--Objects/longobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c
index 7ca8244..92e95f7 100644
--- a/Objects/longobject.c
+++ b/Objects/longobject.c
@@ -1158,7 +1158,7 @@ long_from_binary_base(char **str, int base)
assert(ch >= 'A');
k = ch - 'A' + 10;
}
- assert(k >= 0 && k <= base);
+ assert(k < base);
accum |= k << bits_in_accum;
bits_in_accum += bits_per_char;
if (bits_in_accum >= SHIFT) {