From: NHOrus Date: Tue, 12 Sep 2017 05:18:17 +0000 (+0300) Subject: Type constants to prevent overflow X-Git-Tag: 1.5~16 X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=commitdiff_plain;h=db2daf1da4242ad6a1c1b9689d1702f8a4ec8a3e Type constants to prevent overflow --- 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 */