diff options
Diffstat (limited to 'mini-gmp/mini-gmp.c')
-rw-r--r-- | mini-gmp/mini-gmp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mini-gmp/mini-gmp.c b/mini-gmp/mini-gmp.c index 6bdcd08b1..5aeb819e0 100644 --- a/mini-gmp/mini-gmp.c +++ b/mini-gmp/mini-gmp.c @@ -3877,12 +3877,12 @@ mpz_set_str (mpz_t r, const char *sp, int base) if (*sp == '0') { sp++; - if (*sp == 'x') + if (*sp == 'x' || *sp == 'X') { base = 16; sp++; } - else if (*sp == 'b') + else if (*sp == 'b' || *sp == 'B') { base = 2; sp++; |