1
0
mirror of https://github.com/golang/go synced 2024-11-11 22:50:22 -07:00
go/src
Florian Uekermann 480ef72c23 sort: fixed bug in (Float64Slice) Less; NaN less than anything else
Previously comparisons with NaN led to contradictory results if it was
compared to anything not NaN, since Less always returned false, thus
breaking monotonicity of ordering.
This fix makes NaN less than anything else and adds NaN and (+-)Inf to
testcases.

Fixes #2092.

R=golang-dev, r, rsc, r
CC=golang-dev
https://golang.org/cl/4805051
2011-07-23 15:47:06 -04:00
..
cmd ld: fixes .bss for ldpe 2011-07-23 12:21:13 -04:00
lib9 lib9: use $PWD in getwd 2011-07-22 21:21:17 -04:00
libbio
libmach runtime/cgo: check for errors from pthread_create 2011-06-28 12:04:50 -04:00
pkg sort: fixed bug in (Float64Slice) Less; NaN less than anything else 2011-07-23 15:47:06 -04:00
all-qemu.bash all-qemu.bash: cannot test go/build 2011-06-20 17:44:36 -04:00
all.bash
clean.bash build: reenable clean.bash without gomake 2011-03-21 00:27:50 -03:00
env.bash build: use correct list of required programs 2011-06-27 14:30:02 -04:00
make.bash make.bash: remove old bash version of gotest on Windows 2011-05-04 11:16:55 +10:00
Make.ccmd build: explain $PWD use 2011-06-22 17:00:46 -04:00
Make.clib build: explain $PWD use 2011-06-22 17:00:46 -04:00
Make.cmd make: add nuke target for C commands and libs 2011-05-11 22:53:42 -04:00
Make.common make: prevent rm provoking 'text file busy' errors. 2011-04-15 08:25:44 -04:00
Make.inc goinstall: handle $(GOOS) and $(GOARCH) in filenames 2011-03-07 10:54:53 -05:00
Make.pkg src: Make.pkg don't create $(TARGDIR) with goinstall. 2011-05-30 12:35:55 +10:00
quietgcc.bash quietgcc: fix typo, respect $TMPDIR 2011-05-25 13:20:50 -04:00
run.bash exp/eval, exp/ogle: remove packages eval and ogle 2011-07-13 09:40:53 -07:00
sudo.bash
version.bash build: make version.bash aware of branches 2011-06-30 15:39:00 +10:00