]> granicus.if.org Git - php/commitdiff
Fix decbin
authorStanislav Malyshev <stas@php.net>
Sun, 17 Sep 2000 21:11:55 +0000 (21:11 +0000)
committerStanislav Malyshev <stas@php.net>
Sun, 17 Sep 2000 21:11:55 +0000 (21:11 +0000)
ext/standard/math.c

index 2c40a342e38998bb74aaaff7f708a9d91f6ceee9..0fb3d3cf3277026dd552f8bddda882807617380e 100644 (file)
@@ -433,7 +433,7 @@ _php_math_longtobase(zval *arg, int base)
        static char digits[] = "0123456789abcdefghijklmnopqrstuvwxyz";
        char *result, *ptr, *ret;
        int len, digit;
-       long value;
+       unsigned long value;
 
        if (arg->type != IS_LONG || base < 2 || base > 36) {
                return empty_string;