also fix in go

This commit is contained in:
Eric Vergnaud 2017-06-25 14:49:21 +08:00
parent dbff375c54
commit c3b742e090
1 changed files with 3 additions and 1 deletions

View File

@ -125,8 +125,10 @@ func (a *ATNDeserializer) reset(data []rune) {
// Don't adjust the first value since that's the version number
if i == 0 {
temp[i] = c
} else {
} else if c > 1 {
temp[i] = c - 2
} else {
temp[i] = c + 65533
}
}