]> Cypherpunks repositories - gostls13.git/commit
math: fix ternary correction statement in Log1p
authorBrian Kessler <brian.m.kessler@gmail.com>
Thu, 3 Jan 2019 17:00:49 +0000 (10:00 -0700)
committerRobert Griesemer <gri@golang.org>
Mon, 7 Jan 2019 18:57:45 +0000 (18:57 +0000)
commit649294d0a5a647517eba7f91afef2e635b92a0da
tree32ff7b1f7e4d120a809a0e0b594b3061d313c7e5
parent55dec44010bdabbbac8f58d1059b1fb83e869408
math: fix ternary correction statement in Log1p

The original port of Log1p incorrectly translated a ternary statement
so that a correction was only applied to one of the branches.

Fixes #29488

Change-Id: I035b2fc741f76fe7c0154c63da6e298b575e08a4
Reviewed-on: https://go-review.googlesource.com/c/156120
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Katie Hockman <katie@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/math/all_test.go
src/math/log1p.go