From 08e1c852aa7a42f6d3a4c2099e9ac801090485aa Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Sun, 17 Sep 2000 21:11:55 +0000 Subject: [PATCH] Fix decbin --- ext/standard/math.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.40.0