Commit efb9625b authored by Tim Peters's avatar Tim Peters

Tightened a too-generous assert.

parent bf2674be
...@@ -1158,7 +1158,7 @@ long_from_binary_base(char **str, int base) ...@@ -1158,7 +1158,7 @@ long_from_binary_base(char **str, int base)
assert(ch >= 'A'); assert(ch >= 'A');
k = ch - 'A' + 10; k = ch - 'A' + 10;
} }
assert(k >= 0 && k <= base); assert(k < base);
accum |= k << bits_in_accum; accum |= k << bits_in_accum;
bits_in_accum += bits_per_char; bits_in_accum += bits_per_char;
if (bits_in_accum >= SHIFT) { if (bits_in_accum >= SHIFT) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment