summaryrefslogtreecommitdiffstats
path: root/mpi
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-04-22 19:55:16 -0700
committerKaz Kylheku <kaz@kylheku.com>2015-04-22 19:55:16 -0700
commit5f4b704f40f30d19468078ace5f7624c1225faa6 (patch)
tree04bef19a0e6eaa17a8287396d044fba2dd425faa /mpi
parent555f6d6e75948601f763d84410cb4148786b0059 (diff)
downloadtxr-5f4b704f40f30d19468078ace5f7624c1225faa6.tar.gz
txr-5f4b704f40f30d19468078ace5f7624c1225faa6.tar.bz2
txr-5f4b704f40f30d19468078ace5f7624c1225faa6.zip
fix-ctype-warnings patch
* mpi/mpi.c (s_mp_tovalue): Argument changes from char to int, fixing some compiler warnings.
Diffstat (limited to 'mpi')
-rw-r--r--mpi/mpi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mpi/mpi.c b/mpi/mpi.c
index 33815a9d..1d9da125 100644
--- a/mpi/mpi.c
+++ b/mpi/mpi.c
@@ -198,7 +198,7 @@ int s_mp_cmp_d(mp_int *a, mp_digit d); /* magnitude digit compare */
int s_mp_ispow2(mp_int *v); /* is v a power of 2? */
int s_mp_ispow2d(mp_digit d); /* is d a power of 2? */
-int s_mp_tovalue(char ch, int r); /* convert ch to value */
+int s_mp_tovalue(int ch, int r); /* convert ch to value */
char s_mp_todigit(int val, int r, int low); /* convert val to digit */
int s_mp_outlen(int bits, int r); /* output length in bytes */
@@ -4262,7 +4262,7 @@ int s_mp_ispow2d(mp_digit d)
The results will be odd if you use a radix < 2 or > 62, you are
expected to know what you're up to.
*/
-int s_mp_tovalue(char ch, int r)
+int s_mp_tovalue(int ch, int r)
{
int val, xch;
@@ -4306,7 +4306,7 @@ int s_mp_tovalue(char ch, int r)
char s_mp_todigit(int val, int r, int low)
{
- char ch;
+ int ch;
if(val < 0 || val >= r)
return 0;