]> git.parisson.com Git - pdf.js.git/commitdiff
forgot to changed to typeof b == undefined at one location
authorsbarman <sbarman@L3CWZ5T.(none)>
Mon, 20 Jun 2011 21:14:28 +0000 (14:14 -0700)
committersbarman <sbarman@L3CWZ5T.(none)>
Mon, 20 Jun 2011 21:14:28 +0000 (14:14 -0700)
pdf.js

diff --git a/pdf.js b/pdf.js
index 5b57d0db69d85e22e44398195acc3ff80f96b608..8a844be6c4defcaa3f0838773a8b2efe92e3171e 100644 (file)
--- 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;