changed undefined to null check

This commit is contained in:
sbarman 2011-06-24 21:42:22 -07:00
parent d863286438
commit 12ab3d7338

2
pdf.js
View File

@ -1867,7 +1867,7 @@ var CCITTFaxStream = (function() {
constructor.prototype.lookBits = function(n) {
var c;
while (this.inputBits < n) {
if (typeof (c = this.str.getByte()) == "undefined") {
if ((c = this.str.getByte()) == null) {
if (this.inputBits == 0)
return EOF;
return (this.inputBuf << (n - this.inputBits))