go/scanner: return literal as string instead of []byte

Removed many string conversions in dependent code.
Runs all tests. No change to gofmt output.

R=r
CC=golang-dev
https://golang.org/cl/4291070
This commit is contained in:
Robert Griesemer 2011-03-28 16:44:28 -07:00
parent c98145fb50
commit b2658452a6
16 changed files with 130 additions and 133 deletions

View file

@ -1156,7 +1156,7 @@ func (c *typeConv) Opaque(n int64) ast.Expr {
func (c *typeConv) intExpr(n int64) ast.Expr {
return &ast.BasicLit{
Kind: token.INT,
Value: []byte(strconv.Itoa64(n)),
Value: strconv.Itoa64(n),
}
}