Fixed wrong byte order in the gzip xlen field

This commit is contained in:
Trustin Lee 2009-10-21 11:30:55 +00:00
parent 1dc34f0bfd
commit df216c2b67

View File

@ -429,7 +429,7 @@ final class Inflate {
r = f;
z.avail_in --;
z.total_in ++;
gzipXLen = gzipXLen << 8 | z.next_in[z.next_in_index ++] & 0xff;
gzipXLen |= (z.next_in[z.next_in_index ++] & 0xff) << (1 - gzipBytesToRead) * 8;
gzipBytesToRead --;
}
gzipBytesToRead = gzipXLen;