changed undefined to null check
This commit is contained in:
parent
46105592e9
commit
37a025620f
2
pdf.js
2
pdf.js
@ -1867,7 +1867,7 @@ var CCITTFaxStream = (function() {
|
|||||||
constructor.prototype.lookBits = function(n) {
|
constructor.prototype.lookBits = function(n) {
|
||||||
var c;
|
var c;
|
||||||
while (this.inputBits < n) {
|
while (this.inputBits < n) {
|
||||||
if (typeof (c = this.str.getByte()) == "undefined") {
|
if ((c = this.str.getByte()) == null) {
|
||||||
if (this.inputBits == 0)
|
if (this.inputBits == 0)
|
||||||
return EOF;
|
return EOF;
|
||||||
return (this.inputBuf << (n - this.inputBits))
|
return (this.inputBuf << (n - this.inputBits))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user