From: Stanislav Malyshev Date: Sun, 17 Sep 2000 21:11:55 +0000 (+0000) Subject: Fix decbin X-Git-Tag: php-4.0.3RC1~119 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=08e1c852aa7a42f6d3a4c2099e9ac801090485aa;p=php Fix decbin --- diff --git a/ext/standard/math.c b/ext/standard/math.c index 2c40a342e3..0fb3d3cf32 100644 --- a/ext/standard/math.c +++ b/ext/standard/math.c @@ -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;