diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-04-22 19:53:18 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-04-22 19:53:18 -0700 |
commit | bef6eaf25f2e1308504fd940015ceb8cbd6ed8ff (patch) | |
tree | e2f0aa8900abc9e76299d80830208fd820a2890f /mpi/mplogic.c | |
parent | b59969be0d3254e336abcde112528a4fc4179880 (diff) | |
download | txr-bef6eaf25f2e1308504fd940015ceb8cbd6ed8ff.tar.gz txr-bef6eaf25f2e1308504fd940015ceb8cbd6ed8ff.tar.bz2 txr-bef6eaf25f2e1308504fd940015ceb8cbd6ed8ff.zip |
fix-warnings patch
* mpi/mpi.c (mp_to_unsigned_bin, s_mp_mod_2d): Fix signed/unsigned warning.
(mp_toradix): Fix shadowing local variable name warning.
* mpi/mplogic.c (mpl_num_set, mpl_num_clear): Fix signed/unsigned warning.
Diffstat (limited to 'mpi/mplogic.c')
-rw-r--r-- | mpi/mplogic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mpi/mplogic.c b/mpi/mplogic.c index 5e647b88..2d1cf7bf 100644 --- a/mpi/mplogic.c +++ b/mpi/mplogic.c @@ -290,7 +290,7 @@ mp_err mpl_num_set(mp_int *a, int *num) for(ix = 0; ix < USED(a); ix++) { cur = DIGIT(a, ix); - for(db = 0; db < sizeof(mp_digit); db++) { + for(db = 0; db < (int) sizeof(mp_digit); db++) { reg = (cur >> (CHAR_BIT * db)) & UCHAR_MAX; nset += bitc[reg]; @@ -319,7 +319,7 @@ mp_err mpl_num_clear(mp_int *a, int *num) for(ix = 0; ix < USED(a); ix++) { cur = DIGIT(a, ix); - for(db = 0; db < sizeof(mp_digit); db++) { + for(db = 0; db < (int) sizeof(mp_digit); db++) { reg = (cur >> (CHAR_BIT * db)) & UCHAR_MAX; nset += bitc[UCHAR_MAX - reg]; |