Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(396)

Issue 133530043: code review 133530043: text/template: 0xef is an integer, not a floating-point... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 7 months ago by r
Modified:
9 years, 7 months ago
Reviewers:
ruiu, gobot
CC:
golang-codereviews, ruiu
Visibility:
Public.

Description

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 issue 8622.

Patch Set 1 #

Total comments: 1

Patch Set 2 : diff -r 173175ba9eb71f00f69da09c738523eb4fab36a6 https://code.google.com/p/go #

Patch Set 3 : diff -r 7701aaba295b6a697b961eaedf5c106b4aa2f985 https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -1 line) Patch
M src/pkg/text/template/exec.go View 1 2 chunks +5 lines, -1 line 0 comments Download
M src/pkg/text/template/exec_test.go View 1 1 chunk +5 lines, -0 lines 0 comments Download
M src/pkg/text/template/parse/parse_test.go View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 7
r
Hello golang-codereviews@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
9 years, 7 months ago (2014-09-03 21:32:02 UTC) #1
ruiu
https://codereview.appspot.com/133530043/diff/1/src/pkg/text/template/exec.go File src/pkg/text/template/exec.go (right): https://codereview.appspot.com/133530043/diff/1/src/pkg/text/template/exec.go#newcode396 src/pkg/text/template/exec.go:396: case constant.IsFloat && !strings.HasPrefix(constant.Text, "0x") && strings.IndexAny(constant.Text, ".eE") >= ...
9 years, 7 months ago (2014-09-03 21:40:28 UTC) #2
r
Hello golang-codereviews@googlegroups.com, ruiu@google.com (cc: golang-codereviews@googlegroups.com), Please take another look.
9 years, 7 months ago (2014-09-03 22:20:42 UTC) #3
r
You'd think I'd know by now.
9 years, 7 months ago (2014-09-03 22:20:47 UTC) #4
ruiu
LGTM
9 years, 7 months ago (2014-09-03 22:32:48 UTC) #5
r
*** Submitted as https://code.google.com/p/go/source/detail?r=3e59550be70b *** text/template: 0xef is an integer, not a floating-point value. The ...
9 years, 7 months ago (2014-09-03 22:57:06 UTC) #6
gobot
9 years, 7 months ago (2014-09-03 22:58:41 UTC) #7
Message was sent while issue was closed.
This CL appears to have broken the windows-amd64-perf builder.
See http://build.golang.org/log/beea41b533bc5e7afaebd95b1d79b78f4d0872c0
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b