From: Chris Jones Date: Fri, 13 May 2011 01:09:13 +0000 (+1200) Subject: fix typo in lexing of octal escapes X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=0753ce25c14651822e83073eb859feab477f318d;p=pdf.js.git fix typo in lexing of octal escapes --- diff --git a/pdf.js b/pdf.js index a468da9..9288788 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);