From db2daf1da4242ad6a1c1b9689d1702f8a4ec8a3e Mon Sep 17 00:00:00 2001 From: NHOrus Date: Tue, 12 Sep 2017 08:18:17 +0300 Subject: [PATCH] Type constants to prevent overflow --- advent.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/advent.h b/advent.h index 27250b7..e43459b 100644 --- a/advent.h +++ b/advent.h @@ -8,9 +8,9 @@ /* LCG PRNG parameters tested against * Knuth vol. 2. by the original authors */ -#define LCG_A 1093 -#define LCG_C 221587 -#define LCG_M 1048576 +#define LCG_A 1093L +#define LCG_C 221587L +#define LCG_M 1048576L #define LINESIZE 1024 #define TOKLEN 5 // № sigificant characters in a token */ -- 2.31.1