summaryrefslogtreecommitdiff
path: root/ext/standard/php_lcg.h
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2001-07-18 22:55:52 +0000
committerSascha Schumann <sas@php.net>2001-07-18 22:55:52 +0000
commitdcc60b7f4a3ffb8829d5971551c74e111bdccaf5 (patch)
tree7fac37e2162fea1d202d802ca234cff3350eee51 /ext/standard/php_lcg.h
parente8fe8f9d99f848ca8b41d1f86485bd6e860b86e3 (diff)
downloadphp-git-dcc60b7f4a3ffb8829d5971551c74e111bdccaf5.tar.gz
The lcg needs to operate on signed 32-bit integers, so use
the proper php_int32 types here.
Diffstat (limited to 'ext/standard/php_lcg.h')
-rw-r--r--ext/standard/php_lcg.h6
1 files changed, 4 insertions, 2 deletions
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);