summaryrefslogtreecommitdiff
path: root/ext/standard/rand.c
diff options
context:
space:
mode:
authorSterling Hughes <sterling@php.net>2001-09-18 05:48:49 +0000
committerSterling Hughes <sterling@php.net>2001-09-18 05:48:49 +0000
commit80924608301a448e157baaaccda886b35936af17 (patch)
tree0cf2239e7850461ed25b865184573ecdf05d2d87 /ext/standard/rand.c
parentc3edc73ecce4d81a887e1bffffba35a30f547002 (diff)
downloadphp-git-80924608301a448e157baaaccda886b35936af17.tar.gz
hopefully fix win32 compile warnings
# I really wish i had a box to compile php with win32 on
Diffstat (limited to 'ext/standard/rand.c')
-rw-r--r--ext/standard/rand.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/rand.c b/ext/standard/rand.c
index 5d0f310064..e7cbac399d 100644
--- a/ext/standard/rand.c
+++ b/ext/standard/rand.c
@@ -250,9 +250,9 @@ PHPAPI php_uint32 php_mt_rand(TSRMLS_D)
/* }}} */
#ifdef PHP_WIN32
-#define GENERATE_SEED() (time(0) * GetCurrentProcessId() * 1000000 * php_combined_lcg(TSRMLS_C))
+#define GENERATE_SEED() ((long) (time(0) * GetCurrentProcessId() * 1000000 * php_combined_lcg(TSRMLS_C)))
#else
-#define GENERATE_SEED() (time(0) * getpid() * 1000000 * php_combined_lcg(TSRMLS_C))
+#define GENERATE_SEED() ((long) (time(0) * getpid() * 1000000 * php_combined_lcg(TSRMLS_C)))
#endif
/* {{{ proto void srand([int seed])