diff options
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]; |