libarchive: Cast constants to int64_t instead of using LL suffix

The LL suffix is not portable.  Use an explicit cast instead.
This commit is contained in:
Brad King 2011-12-21 11:46:16 -05:00
parent 53da4b3028
commit 3b9eaec738
2 changed files with 2 additions and 2 deletions

View File

@ -1406,7 +1406,7 @@ zisofs_read_data(struct archive_read *a,
/* Allocate block pointers buffer. */
ceil = (zisofs->pz_uncompressed_size +
(1LL << zisofs->pz_log2_bs) - 1)
(((int64_t)1) << zisofs->pz_log2_bs) - 1)
>> zisofs->pz_log2_bs;
xsize = (ceil + 1) * 4;
if (zisofs->block_pointers_alloc < xsize) {

View File

@ -7774,7 +7774,7 @@ zisofs_extract_init(struct archive_write *a, struct zisofs_extract *zisofs,
/* Allocate block pointers buffer. */
ceil = (zisofs->pz_uncompressed_size +
(1LL << zisofs->pz_log2_bs) - 1)
(((int64_t)1) << zisofs->pz_log2_bs) - 1)
>> zisofs->pz_log2_bs;
xsize = (ceil + 1) * 4;
if (zisofs->block_pointers == NULL) {