diff options
author | Tim Peters <tim.peters@gmail.com> | 2003-02-02 08:05:32 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2003-02-02 08:05:32 (GMT) |
commit | efb9625b81c87330742e49b1df9595634583f7a8 (patch) | |
tree | eb9371306047fda16a5010ae588cb9079590e967 /Objects/longobject.c | |
parent | bf2674be0e95787cdeb154091b7377e30b2827bf (diff) | |
download | cpython-efb9625b81c87330742e49b1df9595634583f7a8.zip cpython-efb9625b81c87330742e49b1df9595634583f7a8.tar.gz cpython-efb9625b81c87330742e49b1df9595634583f7a8.tar.bz2 |
Tightened a too-generous assert.
Diffstat (limited to 'Objects/longobject.c')
-rw-r--r-- | Objects/longobject.c | 2 |
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) { |