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

Issue 4764044: code review 4764044: fmt: Scan(&int) was mishandling a lone zero. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 9 months ago by r
Modified:
13 years, 9 months ago
Reviewers:
CC:
golang-dev, dsymonds
Visibility:
Public.

Description

fmt: Scan(&int) was mishandling a lone zero. It took it as an octal base prefix but assumed more digits were coming. Fixes issue 2077.

Patch Set 1 #

Patch Set 2 : diff -r 360a3e7b308e https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 360a3e7b308e https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -3 lines) Patch
M src/pkg/fmt/scan.go View 1 chunk +5 lines, -3 lines 0 comments Download
M src/pkg/fmt/scan_test.go View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 3
r
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 9 months ago (2011-07-17 23:42:13 UTC) #1
dsymonds
LGTM
13 years, 9 months ago (2011-07-18 00:04:54 UTC) #2
r
13 years, 9 months ago (2011-07-18 00:05:44 UTC) #3
*** Submitted as http://code.google.com/p/go/source/detail?r=36d7372ab5e3 ***

fmt: Scan(&int) was mishandling a lone zero.
It took it as an octal base prefix but assumed more digits were coming.
Fixes issue 2077.

R=golang-dev, dsymonds
CC=golang-dev
http://codereview.appspot.com/4764044
Sign in to reply to this message.

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