diff dbrandom.c @ 1274:9da3e7b4fe55

add parentheses to macro
author Francois Perrad <francois.perrad@gadz.org>
date Fri, 01 Jan 2016 09:40:24 +0100
parents a9e4d66ffb2c
children 750ec4ec4cbe b28624698130
line wrap: on
line diff
--- a/dbrandom.c	Fri Jan 01 09:20:50 2016 +0100
+++ b/dbrandom.c	Fri Jan 01 09:40:24 2016 +0100
@@ -32,7 +32,7 @@
 /* this is used to generate unique output from the same hashpool */
 static uint32_t counter = 0;
 /* the max value for the counter, so it won't integer overflow */
-#define MAX_COUNTER 1<<30 
+#define MAX_COUNTER (1<<30)
 
 static unsigned char hashpool[SHA1_HASH_SIZE] = {0};
 static int donerandinit = 0;