mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Tightened a too-generous assert.
This commit is contained in:
parent
bf2674be0e
commit
efb9625b81
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue