diff --git a/src/bin/fp_read_radix.c b/src/bin/fp_read_radix.c index 0a7371c..02d0d0f 100644 --- a/src/bin/fp_read_radix.c +++ b/src/bin/fp_read_radix.c @@ -38,7 +38,7 @@ int fp_read_radix(fp_int *a, char *str, int radix) * this allows numbers like 1AB and 1ab to represent the same value * [e.g. in hex] */ - ch = (char) ((radix < 36) ? toupper (*str) : *str); + ch = (char) ((radix < 36) ? toupper ((int)*str) : *str); for (y = 0; y < 64; y++) { if (ch == fp_s_rmap[y]) { break;