mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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:
parent
c98145fb50
commit
b2658452a6
16 changed files with 130 additions and 133 deletions
|
|
@ -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),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue