From 0753ce25c14651822e83073eb859feab477f318d Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Fri, 13 May 2011 13:09:13 +1200 Subject: [PATCH] fix typo in lexing of octal escapes --- pdf.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);