Artur Adib 13 years ago
parent
commit
775290d698
  1. 8
      src/obj.js

8
src/obj.js

@ -319,8 +319,8 @@ var XRef = (function XRefClosure() { @@ -319,8 +319,8 @@ var XRef = (function XRefClosure() {
entry.uncompressed = true;
// Validate entry obj
if ( !isInt(entry.offset) || !isInt(entry.gen) ||
!(entry.free || entry.uncompressed) ) {
if (!isInt(entry.offset) || !isInt(entry.gen) ||
!(entry.free || entry.uncompressed)) {
error('Invalid entry in XRef subsection: ' + first + ', ' + count);
}
@ -330,8 +330,8 @@ var XRef = (function XRefClosure() { @@ -330,8 +330,8 @@ var XRef = (function XRefClosure() {
}
// Sanity check: as per spec, first object must have these properties
if ( this.entries[0] &&
!(this.entries[0].gen === 65535 && this.entries[0].free) )
if (this.entries[0] &&
!(this.entries[0].gen === 65535 && this.entries[0].free))
error('Invalid XRef table: unexpected first object');
// Sanity check

Loading…
Cancel
Save