From: sbarman Date: Mon, 20 Jun 2011 21:14:28 +0000 (-0700) Subject: forgot to changed to typeof b == undefined at one location X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=efe148e715f9f5d09ae6d04380ce5cc6f505b93e;p=pdf.js.git forgot to changed to typeof b == undefined at one location --- diff --git a/pdf.js b/pdf.js index 5b57d0d..8a844be 100644 --- a/pdf.js +++ b/pdf.js @@ -267,7 +267,7 @@ var FlateStream = (function() { var b; while (codeSize < bits) { - if ((b = bytes[bytesPos++]) == undefined) + if (typeof (b = bytes[bytesPos++]) == "undefined") error("Bad encoding in flate stream"); codeBuf |= b << codeSize; codeSize += 8;