Skip to content

Commit

Permalink
syntax: appease unconvert
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdan committed Oct 12, 2022
1 parent 839bca6 commit 13def01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion syntax/lexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,7 @@ func (p *Parser) endLit() (s string) {
if p.r == utf8.RuneSelf || p.r == escNewl {
s = string(p.litBs)
} else {
s = string(p.litBs[:len(p.litBs)-int(p.w)])
s = string(p.litBs[:len(p.litBs)-p.w])
}
p.litBs = nil
return
Expand Down
2 changes: 1 addition & 1 deletion syntax/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ func (p *Parser) nextPos() Pos {
if !p.colOverflow {
col = uint(p.col)
}
return NewPos(uint(p.offs+p.bsp-int(p.w)), line, col)
return NewPos(uint(p.offs+p.bsp-p.w), line, col)
}

func (p *Parser) lit(pos Pos, val string) *Lit {
Expand Down

0 comments on commit 13def01

Please sign in to comment.