py/mpz: Fix assertion in mpz_set_from_str which checks value of base.
This commit is contained in:
parent
c2dd494bd9
commit
2d9440e2d1
2
py/mpz.c
2
py/mpz.c
|
@ -874,7 +874,7 @@ typedef uint32_t mp_float_int_t;
|
|||
|
||||
// returns number of bytes from str that were processed
|
||||
mp_uint_t mpz_set_from_str(mpz_t *z, const char *str, mp_uint_t len, bool neg, mp_uint_t base) {
|
||||
assert(base < 36);
|
||||
assert(base <= 36);
|
||||
|
||||
const char *cur = str;
|
||||
const char *top = str + len;
|
||||
|
|
Loading…
Reference in a new issue