]> Cypherpunks repositories - gostls13.git/commit
8g: fix conversion from float to uint64
authorAnthony Martin <ality@pbrane.org>
Tue, 17 May 2011 02:14:56 +0000 (22:14 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 17 May 2011 02:14:56 +0000 (22:14 -0400)
commitf570d9d7657edcccb52b2ec9a55cb90a28602d57
tree694571bbfa4f67fc2a829f8267c86d58622b1eeb
parentde7c28fe7689fccbf7b415eb5f5defb8b43ba390
8g: fix conversion from float to uint64

The code for converting negative floats was
incorrectly loading an FP control word from
the stack without ever having stored it there.

Thanks to Lars Pensjö for reporting this bug.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/4515091
src/cmd/8g/gsubr.c
test/fixedbugs/bug341.go [new file with mode: 0644]