diff options
author | Sterling Hughes <sterling@php.net> | 2001-09-18 20:05:05 +0000 |
---|---|---|
committer | Sterling Hughes <sterling@php.net> | 2001-09-18 20:05:05 +0000 |
commit | 563c0670e5326135a470909bcb8a7a3486a1ae14 (patch) | |
tree | e66493011c9c806ef23dc318ad999c197dfcd4d0 | |
parent | 80924608301a448e157baaaccda886b35936af17 (diff) | |
download | php-git-563c0670e5326135a470909bcb8a7a3486a1ae14.tar.gz |
another attempt at fixing compile warnings...
-rw-r--r-- | ext/standard/math.c | 6 |
1 files changed, 3 insertions, 3 deletions
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) { |