From b992f02935a47745bde74e34f6fae5dab523b18a Mon Sep 17 00:00:00 2001 From: Zeev Suraski Date: Mon, 24 Apr 2000 17:35:27 +0000 Subject: - Get rid of newly introduced warning --- ext/standard/rand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/standard/rand.c') diff --git a/ext/standard/rand.c b/ext/standard/rand.c index c3aa9917c6..61203488f3 100644 --- a/ext/standard/rand.c +++ b/ext/standard/rand.c @@ -92,7 +92,7 @@ #define loBits(u) ((u) & 0x7FFFFFFFU) /* mask the highest bit of u */ #define mixBits(u, v) (hiBit(u)|loBits(v)) /* move hi bit of u to hi bit of v */ -#define MT_RAND_MAX ((unsigned long)((1<<31)-1)) +#define MT_RAND_MAX ((long)(0x7FFFFFFF)) /* (1<<31) - 1 */ static void seedMT(php_uint32 seed BLS_DC) { -- cgit v1.2.1