diff random.c @ 433:c216212001fc

Fix for -pedantic -ansi compilation, change // to /**/, plus some signedness and trailing-comma-in-array issues
author Matt Johnston <matt@ucc.asn.au>
date Fri, 16 Feb 2007 14:42:08 +0000
parents 00703f1df67a
children d82a2a44c684
line wrap: on
line diff
--- a/random.c	Tue Feb 13 10:30:02 2007 +0000
+++ b/random.c	Fri Feb 16 14:42:08 2007 +0000
@@ -214,7 +214,7 @@
 
 	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);