Skip to content

Commit 2d9440e

Browse files
committed
py/mpz: Fix assertion in mpz_set_from_str which checks value of base.
1 parent c2dd494 commit 2d9440e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

py/mpz.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,7 @@ typedef uint32_t mp_float_int_t;
874874

875875
// returns number of bytes from str that were processed
876876
mp_uint_t mpz_set_from_str(mpz_t *z, const char *str, mp_uint_t len, bool neg, mp_uint_t base) {
877-
assert(base < 36);
877+
assert(base <= 36);
878878

879879
const char *cur = str;
880880
const char *top = str + len;

0 commit comments

Comments
 (0)