fix typo in lexing of octal escapes

This commit is contained in:
Chris Jones 2011-05-13 13:09:13 +12:00
parent a9a16ccb8a
commit 0753ce25c1

4
pdf.js
View File

@ -1199,11 +1199,11 @@ var Lexer = (function() {
ch = stream.lookChar();
if (ch >= '0' && ch <= '7') {
stream.skip();
x = (x << 3) + (x - '0');
x = (x << 3) + (ch - '0');
ch = stream.lookChar();
if (ch >= '0' && ch <= '7') {
stream.skip();
x = (x << 3) + (x - '0');
x = (x << 3) + (ch - '0');
}
}
str += String.fromCharCode(x);