Type constants to prevent overflow

This commit is contained in:
NHOrus 2017-09-12 08:18:17 +03:00
parent 076bb8908b
commit db2daf1da4

View file

@ -8,9 +8,9 @@
/* LCG PRNG parameters tested against /* LCG PRNG parameters tested against
* Knuth vol. 2. by the original authors */ * Knuth vol. 2. by the original authors */
#define LCG_A 1093 #define LCG_A 1093L
#define LCG_C 221587 #define LCG_C 221587L
#define LCG_M 1048576 #define LCG_M 1048576L
#define LINESIZE 1024 #define LINESIZE 1024
#define TOKLEN 5 // № sigificant characters in a token */ #define TOKLEN 5 // № sigificant characters in a token */