diff options
author | Brad King <brad.king@kitware.com> | 2011-12-21 16:46:16 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2011-12-23 21:04:58 (GMT) |
commit | 3b9eaec7381c015ea295e3757f2fe01ad8de3763 (patch) | |
tree | 0f0f1a865c3e2bad25249e53e46eb0c419f7cd8c /Utilities/cmlibarchive | |
parent | 53da4b302845e27dc2f7e93324eabe862e307744 (diff) | |
download | CMake-3b9eaec7381c015ea295e3757f2fe01ad8de3763.zip CMake-3b9eaec7381c015ea295e3757f2fe01ad8de3763.tar.gz CMake-3b9eaec7381c015ea295e3757f2fe01ad8de3763.tar.bz2 |
libarchive: Cast constants to int64_t instead of using LL suffix
The LL suffix is not portable. Use an explicit cast instead.
Diffstat (limited to 'Utilities/cmlibarchive')
-rw-r--r-- | Utilities/cmlibarchive/libarchive/archive_read_support_format_iso9660.c | 2 | ||||
-rw-r--r-- | Utilities/cmlibarchive/libarchive/archive_write_set_format_iso9660.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Utilities/cmlibarchive/libarchive/archive_read_support_format_iso9660.c b/Utilities/cmlibarchive/libarchive/archive_read_support_format_iso9660.c index 4bf140f..8d2ba1d 100644 --- a/Utilities/cmlibarchive/libarchive/archive_read_support_format_iso9660.c +++ b/Utilities/cmlibarchive/libarchive/archive_read_support_format_iso9660.c @@ -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) { diff --git a/Utilities/cmlibarchive/libarchive/archive_write_set_format_iso9660.c b/Utilities/cmlibarchive/libarchive/archive_write_set_format_iso9660.c index afc4a67..3cb2488 100644 --- a/Utilities/cmlibarchive/libarchive/archive_write_set_format_iso9660.c +++ b/Utilities/cmlibarchive/libarchive/archive_write_set_format_iso9660.c @@ -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) { |