summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/standard/math.c2
1 files changed, 1 insertions, 1 deletions
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;