commit | 2d9440e2d18775636cf6cfafe1aa1440b21d026b | [log] [tgz] |
---|---|---|
author | Damien George <damien.p.george@gmail.com> | Wed Dec 28 12:04:19 2016 +1100 |
committer | Damien George <damien.p.george@gmail.com> | Wed Dec 28 12:04:19 2016 +1100 |
tree | 18853510c9c2e9622e58f107de140317728bafc0 | |
parent | c2dd494bd989ed1a32bf09816f211c04ad243a8b [diff] [blame] |
py/mpz: Fix assertion in mpz_set_from_str which checks value of base.
diff --git a/py/mpz.c b/py/mpz.c index 1861840..e503927 100644 --- a/py/mpz.c +++ b/py/mpz.c
@@ -874,7 +874,7 @@ // 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;