Change Token.Line from int32 to uint32.

This commit is contained in:
Nigel Tao committed 2017-04-30 13:27:55 +10:00
1 parent 0cfb27db56
commit a48bbf6d2e
2 files changed
+7 -4

No files matched your search

+2 -2
View File
@@ -26,10 +26,10 @@ type parser struct {
src []t.Token
m *t.IDMap
filename string
lastLine int32
lastLine uint32
}
func (p *parser) line() int32 {
func (p *parser) line() uint32 {
if len(p.src) != 0 {
return p.src[0].Line
}