From eb5075e7fcd8ed921a39c1e20a3b740cb228104e Mon Sep 17 00:00:00 2001 From: Steffen Jaeckel Date: Sun, 27 Mar 2011 19:33:53 +0200 Subject: [PATCH] added typecast in fp_read_radix() to suppress compiler warning --- src/bin/fp_read_radix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;