]> granicus.if.org Git - php/commitdiff
another attempt at fixing compile warnings...
authorSterling Hughes <sterling@php.net>
Tue, 18 Sep 2001 20:05:05 +0000 (20:05 +0000)
committerSterling Hughes <sterling@php.net>
Tue, 18 Sep 2001 20:05:05 +0000 (20:05 +0000)
ext/standard/math.c

index f0c8d81e1e91045b1f9e40ddd68e691d28930a3d..22206a676bdd74224472a82ee3582833f5e09c6b 100644 (file)
@@ -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) {