]> Cypherpunks repositories - gostls13.git/commit
cmd/gc: check exponent overflow and underflow in mparith
authorJan Ziak <0xe2.0x9a.0x9b@gmail.com>
Wed, 19 Mar 2014 04:48:00 +0000 (05:48 +0100)
committerJan Ziak <0xe2.0x9a.0x9b@gmail.com>
Wed, 19 Mar 2014 04:48:00 +0000 (05:48 +0100)
commitcb502775107ce5f6f22e9b47c9c77300859864b4
tree1d765f244733996d79cd0b297ddf4b695ad936b1
parent50f1e1a6b9317a975477bc89503e2e1c1fa6b1be
cmd/gc: check exponent overflow and underflow in mparith

A too large float constant is an error.
A too small float constant is rounded to zero.

Fixes #7419
Update #6902

LGTM=iant
R=golang-codereviews, iant
CC=golang-codereviews
https://golang.org/cl/76730046
src/cmd/gc/go.h
src/cmd/gc/mparith1.c
src/cmd/gc/mparith3.c
test/fixedbugs/issue7419.go [new file with mode: 0644]