forgot to changed to typeof b == undefined at one location

This commit is contained in:
sbarman 2011-06-20 14:14:28 -07:00
parent 9c01d8536a
commit efe148e715

2
pdf.js
View File

@ -267,7 +267,7 @@ var FlateStream = (function() {
var b; var b;
while (codeSize < bits) { while (codeSize < bits) {
if ((b = bytes[bytesPos++]) == undefined) if (typeof (b = bytes[bytesPos++]) == "undefined")
error("Bad encoding in flate stream"); error("Bad encoding in flate stream");
codeBuf |= b << codeSize; codeBuf |= b << codeSize;
codeSize += 8; codeSize += 8;