Fix for -pedantic -ansi compilation, change // to /**/, plus some signedness

and trailing-comma-in-array issues

--HG--
extra : convert_revision : c22be8b8f570b48e9662dac32c7b3e7148a42206
This commit is contained in:
Matt Johnston
2007-02-16 14:42:08 +00:00
parent 41fd735d4b
commit 7f12251fbb
8 changed files with 16 additions and 17 deletions

View File

@@ -214,7 +214,7 @@ void gen_random_mpint(mp_int *max, mp_int *rand) {
unsigned char *randbuf = NULL;
unsigned int len = 0;
const char masks[] = {0xff, 0x01, 0x03, 0x07, 0x0f, 0x1f, 0x3f, 0x7f};
const unsigned char masks[] = {0xff, 0x01, 0x03, 0x07, 0x0f, 0x1f, 0x3f, 0x7f};
const int size_bits = mp_count_bits(max);