fix problem on 32-bit problems - with thanks to Alan Barrett and
Jonathan Kollasch
This commit is contained in:
parent
9bf07868ef
commit
2752da196a
|
@ -940,7 +940,7 @@ read_compressed(pgpv_t *pgp, pgpv_compress_t *compressed, uint8_t *p, size_t len
|
|||
break;
|
||||
case BZIP2_COMPRESSION:
|
||||
ok = (BZ2_bzDecompress(&bz) == BZ_STREAM_END);
|
||||
unzmem->size = ((size_t)bz.total_out_hi32 << 32) | bz.total_out_lo32;
|
||||
unzmem->size = ((uint64_t)bz.total_out_hi32 << 32) | bz.total_out_lo32;
|
||||
break;
|
||||
}
|
||||
if (!ok) {
|
||||
|
|
Loading…
Reference in New Issue