]> Cypherpunks repositories - gostls13.git/commit
cmd/gc: fix comparison order of parameters in mpcmpfltc(a, b)
authorShenghou Ma <minux.ma@gmail.com>
Mon, 16 Dec 2013 21:54:10 +0000 (16:54 -0500)
committerShenghou Ma <minux.ma@gmail.com>
Mon, 16 Dec 2013 21:54:10 +0000 (16:54 -0500)
commitf85ba7d50a7df5a978a259a3e06bc30af1bbd5df
treed6c043fb93dcbc58fc5839862c9a0a2829217005
parent1f20ab1116ab6cb0b77e22ffba3de9919e9def50
cmd/gc: fix comparison order of parameters in mpcmpfltc(a, b)
It should compare a - b to 0, not b - a to 0.
Fixes #6964.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/39020044
src/cmd/gc/mparith1.c
test/fixedbugs/issue6964.go [new file with mode: 0644]