1
0
mirror of https://github.com/golang/go synced 2024-09-30 12:28:35 -06:00

cmd/compile: more lineno type conversions

Change-Id: Ib0a116a78f61eafe88a0ea5dc6733750ae755fdf
Reviewed-on: https://go-review.googlesource.com/20156
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
Matthew Dempsky 2016-03-02 20:32:40 -08:00
parent 90cb1fdaf2
commit 868fb9ff1d
3 changed files with 4 additions and 4 deletions

View File

@ -125,7 +125,7 @@ func dowidth(t *Type) {
if t.Width == -2 {
if !t.Broke {
t.Broke = true
yyerrorl(int32(t.Lineno), "invalid recursive type %v", t)
yyerrorl(t.Lineno, "invalid recursive type %v", t)
}
t.Width = 0
@ -142,7 +142,7 @@ func dowidth(t *Type) {
defercalc++
lno := lineno
lineno = int32(t.Lineno)
lineno = t.Lineno
t.Width = -2
t.Align = 0

View File

@ -104,7 +104,7 @@ type Type struct {
Nod *Node // canonical OTYPE node
Orig *Type // original type (type literal or predefined type)
Lineno int
Lineno int32
// TFUNC
Thistuple int

View File

@ -391,7 +391,7 @@ func typ(et EType) *Type {
t := new(Type)
t.Etype = et
t.Width = BADWIDTH
t.Lineno = int(lineno)
t.Lineno = lineno
t.Orig = t
return t
}