]> granicus.if.org Git - php/commitdiff
fix asinh delivering -0 when the arg is 0
authorAnatol Belski <ab@php.net>
Fri, 3 Oct 2014 20:17:02 +0000 (22:17 +0200)
committerAnatol Belski <ab@php.net>
Fri, 3 Oct 2014 20:18:21 +0000 (22:18 +0200)
ext/standard/math.c

index 4185cd48f44386132390f859ad2f85fafb825416..7014e6c9384760286e49dae8882c26a2e0f0eb9c 100644 (file)
@@ -220,7 +220,7 @@ static double php_asinh(double z)
        return(asinh(z));
 #else
 # ifdef _WIN64
-       if (z > 0) {
+       if (z >= 0) {
                return log(z + sqrt(z * z + 1));
        }
        else {