diff --git a/pdf.js b/pdf.js index a468da987..928878893 100644 --- 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);