summaryrefslogtreecommitdiff
path: root/ext/standard/math.c
diff options
context:
space:
mode:
authorJames Moore <jmoore@php.net>2001-11-13 11:27:42 +0000
committerJames Moore <jmoore@php.net>2001-11-13 11:27:42 +0000
commite8a7dbe01012bc384618bc49f72afb574858f406 (patch)
tree7ef21f66dbf1a11a9c06680b4ee066f1a46e5a2c /ext/standard/math.c
parentd205634a58e16b77093f78d3c4125f81dfae1b64 (diff)
downloadphp-git-e8a7dbe01012bc384618bc49f72afb574858f406.tar.gz
Lets cast this explicitly.
Diffstat (limited to 'ext/standard/math.c')
-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 18b403c760..7eb45ace46 100644
--- a/ext/standard/math.c
+++ b/ext/standard/math.c
@@ -733,7 +733,7 @@ _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 + 1;
+ fmult = ((double) ULONG_MAX) + 1;
} else {
fmult = (unsigned long)mult;
}