]> Cypherpunks repositories - gostls13.git/commit
text/template: 0xef is an integer, not a floating-point value.
authorRob Pike <r@golang.org>
Wed, 3 Sep 2014 22:57:03 +0000 (15:57 -0700)
committerRob Pike <r@golang.org>
Wed, 3 Sep 2014 22:57:03 +0000 (15:57 -0700)
commit55fa7659c990701b3b7fb21e5364585793b9e452
tree0c6353026ed26f946c29aac8b92305aa0c1a81dc
parent5ea69978fd07abdd4bb5ed63dfb38700389493c6
text/template: 0xef is an integer, not a floating-point value.
The discriminator in the execution engine was stupid.
Add a test to the parse package too. The problem wasn't there
but the particular case ('e' in a hex integer) was not covered.

Fixes #8622.

LGTM=ruiu
R=golang-codereviews, ruiu
CC=golang-codereviews
https://golang.org/cl/133530043
src/pkg/text/template/exec.go
src/pkg/text/template/exec_test.go
src/pkg/text/template/parse/parse_test.go