From 2d9440e2d18775636cf6cfafe1aa1440b21d026b Mon Sep 17 00:00:00 2001
From: Damien George <damien.p.george@gmail.com>
Date: Wed, 28 Dec 2016 12:04:19 +1100
Subject: [PATCH] py/mpz: Fix assertion in mpz_set_from_str which checks value
 of base.

---
 py/mpz.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/py/mpz.c b/py/mpz.c
index 1861840e8..e503927d0 100644
--- a/py/mpz.c
+++ b/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;
-- 
GitLab