]> git.parisson.com Git - pdf.js.git/commitdiff
fix typo in lexing of octal escapes
authorChris Jones <jones.chris.g@gmail.com>
Fri, 13 May 2011 01:09:13 +0000 (13:09 +1200)
committerChris Jones <jones.chris.g@gmail.com>
Fri, 13 May 2011 01:09:13 +0000 (13:09 +1200)
pdf.js

diff --git a/pdf.js b/pdf.js
index a468da987ac5f6fef99c7255ce60e58c8e54b117..9288788939baca06c3c0eea3feff5899c3c8cffd 100644 (file)
--- a/pdf.js
+++ b/pdf.js
@@ -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);