all: use ints instead of uints

Files are small and these are cheap enough that we should be more
worried about overflow errors than the space cost.
This commit is contained in:
Kevin Burke
2019-06-29 20:37:49 -07:00
parent 81db2a7582
commit f648cfb84b
4 changed files with 14 additions and 13 deletions

View File

@@ -149,7 +149,7 @@ func (p *sshParser) parseKV() sshParserStateFn {
Value: val.val,
Comment: comment,
hasEquals: hasEquals,
leadingSpace: uint16(key.Position.Col) - 1,
leadingSpace: key.Position.Col - 1,
position: key.Position,
}
lastHost.Nodes = append(lastHost.Nodes, kv)