From: Sterling Hughes Date: Tue, 18 Sep 2001 20:05:05 +0000 (+0000) Subject: another attempt at fixing compile warnings... X-Git-Tag: PRE_SUBST_Z_MACROS~67 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=563c0670e5326135a470909bcb8a7a3486a1ae14;p=php another attempt at fixing compile warnings... --- diff --git a/ext/standard/math.c b/ext/standard/math.c index f0c8d81e1e..22206a676b 100644 --- a/ext/standard/math.c +++ b/ext/standard/math.c @@ -733,11 +733,11 @@ _php_math_basetozval(zval *arg, int base, zval *ret) { if(!f_mode && (!mult || digit > LONG_MAX/mult || num > LONG_MAX-mult*digit)) { f_mode = 1; if(!mult) { - fmult = ULONG_MAX + (ulong) 1; + fmult = (ulong) ULONG_MAX + 1; } else { - fmult = (unsigned long)mult; + fmult = (ulong) mult; } - fnum = (unsigned long)num; + fnum = (ulong) num; } if(f_mode) {