com php-src: fix asinh delivering -0 when the arg is 0: ext/standard/math.c

From: Date: Fri, 03 Oct 2014 20:18:21 +0000
Subject: com php-src: fix asinh delivering -0 when the arg is 0: ext/standard/math.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-82085@lists.php.net to get a copy of this message
Commit: e9b23401514a642b58084784305c1d19cf86a823 Author: Anatol Belski <ab@php.net> Fri, 3 Oct 2014 22:17:02 +0200 Parents: b68886f7b531976e41b8a66baabebbabc79bd1f2 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e9b23401514a642b58084784305c1d19cf86a823 Log: fix asinh delivering -0 when the arg is 0 Changed paths: M ext/standard/math.c Diff: diff --git a/ext/standard/math.c b/ext/standard/math.c index 4185cd4..7014e6c 100644 --- a/ext/standard/math.c +++ b/ext/standard/math.c @@ -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 {

« previous php.cvs (#82085) next »