diff options
-rw-r--r-- | ext/standard/lcg.c | 4 | ||||
-rw-r--r-- | ext/standard/php_lcg.h | 6 |
2 files changed, 6 insertions, 4 deletions
diff --git a/ext/standard/lcg.c b/ext/standard/lcg.c index 22f6fc3fb5..51447252ba 100644 --- a/ext/standard/lcg.c +++ b/ext/standard/lcg.c @@ -48,8 +48,8 @@ static int php_lcg_initialized = 0; double php_combined_lcg(void) { - long q; - long z; + php_int32 q; + php_int32 z; LCGLS_FETCH(); MODMULT(53668,40014,12211,2147483563L, LCG(s1)); diff --git a/ext/standard/php_lcg.h b/ext/standard/php_lcg.h index 1cb5fb009c..4abe6a13ce 100644 --- a/ext/standard/php_lcg.h +++ b/ext/standard/php_lcg.h @@ -21,9 +21,11 @@ #ifndef PHP_LCG_H #define PHP_LCG_H +#include "ext/standard/basic_functions.h" + typedef struct { - long s1; - long s2; + php_int32 s1; + php_int32 s2; } php_lcg_globals; double php_combined_lcg(void); |