diff options
Diffstat (limited to 'libgo/go/math/sincos.go')
-rw-r--r-- | libgo/go/math/sincos.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libgo/go/math/sincos.go b/libgo/go/math/sincos.go index b3a2f8a8619..89db81e7fa5 100644 --- a/libgo/go/math/sincos.go +++ b/libgo/go/math/sincos.go @@ -42,8 +42,8 @@ func sincos(x float64) (sin, cos float64) { y := float64(j) // integer part of x/(Pi/4), as float if j&1 == 1 { // map zeros to origin - j += 1 - y += 1 + j++ + y++ } j &= 7 // octant modulo 2Pi radians (360 degrees) if j > 3 { // reflect in x axis |