From 7f12251fbb2acefac04e13a7c6a95ca4dd4b5578 Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Fri, 16 Feb 2007 14:42:08 +0000 Subject: Fix for -pedantic -ansi compilation, change // to /**/, plus some signedness and trailing-comma-in-array issues --HG-- extra : convert_revision : c22be8b8f570b48e9662dac32c7b3e7148a42206 --- random.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'random.c') diff --git a/random.c b/random.c index 36fedff..f1475ed 100644 --- a/random.c +++ b/random.c @@ -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); -- cgit v1.2.3