summaryrefslogtreecommitdiffstats
path: root/mpi-patches/fix-ctype-warnings
blob: 5ec951017bd3907a501b85f55d140172ce628dc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Index: mpi-1.8.6/mpi.c
===================================================================
--- mpi-1.8.6.orig/mpi.c	2015-02-07 19:33:14.608233363 -0800
+++ mpi-1.8.6/mpi.c	2015-02-07 19:33:17.280186661 -0800
@@ -198,7 +198,7 @@
 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 @@
   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 @@
   
 char     s_mp_todigit(int val, int r, int low)
 {
-  char   ch;
+  int   ch;
 
   if(val < 0 || val >= r)
     return 0;