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

Unified Diff: src/pkg/fmt/scan.go

Issue 2144043: code review 2144043: fmt.Scan: fix integer overflow on 32-bit machines (Closed)
Patch Set: code review 2144043: fmt.Scan: fix integer overflow on 32-bit machines Created 14 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/pkg/fmt/scan_test.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pkg/fmt/scan.go
===================================================================
--- a/src/pkg/fmt/scan.go
+++ b/src/pkg/fmt/scan.go
@@ -740,7 +740,7 @@
case *int32:
*v = int32(s.scanInt(verb, 32))
case *int64:
- *v = s.scanInt(verb, intBits)
+ *v = s.scanInt(verb, 64)
case *uint:
*v = uint(s.scanUint(verb, intBits))
case *uint8:
« no previous file with comments | « no previous file | src/pkg/fmt/scan_test.go » ('j') | no next file with comments »

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