fix JavaScript too

This commit is contained in:
Eric Vergnaud 2017-06-25 13:44:24 +08:00
parent ff4ffa613b
commit 0166ba95ac
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ ATNDeserializer.prototype.deserialize = function(data) {
ATNDeserializer.prototype.reset = function(data) {
var adjust = function(c) {
var v = c.charCodeAt(0);
return v>1 ? v-2 : -1;
return v>1 ? v-2 : v + 65533;
};
var temp = data.split("").map(adjust);
// don't adjust the first value since that's the version number