summaryrefslogtreecommitdiff
path: root/libarchive/archive_read_support_format_tar.c
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-12-09 14:03:43 -0500
committerBrad King <brad.king@kitware.com>2013-12-09 14:09:16 -0500
commit07686034efec92c75547def958ae618754e15013 (patch)
treea16b3970c18ab5b020203614b7c1c21ef6b9eb2f /libarchive/archive_read_support_format_tar.c
parenta5a9a6a19bfc013a72914c9c22c87bcfeed80ee9 (diff)
downloadlibarchive-07686034efec92c75547def958ae618754e15013.tar.gz
libarchive: Use ARCHIVE_LITERAL_ULL to add ULL integer suffix
The macro maps to an implementation that works on older compilers when necessary. Convert the 0ULL literal introduced by commit 6cf33c93 (Issue 320: Rewrite (again) to avoid the left shift that CLang dislikes so much, 2013-12-07) to use the macro.
Diffstat (limited to 'libarchive/archive_read_support_format_tar.c')
-rw-r--r--libarchive/archive_read_support_format_tar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libarchive/archive_read_support_format_tar.c b/libarchive/archive_read_support_format_tar.c
index 8bd22c7e..a59a3011 100644
--- a/libarchive/archive_read_support_format_tar.c
+++ b/libarchive/archive_read_support_format_tar.c
@@ -2489,7 +2489,7 @@ tar_atol256(const char *_p, size_t char_cnt)
if (c & 0x40) {
neg = 0xff;
c |= 0x80;
- l = ~0ULL;
+ l = ~ARCHIVE_LITERAL_ULL(0);
} else {
neg = 0;
c &= 0x7f;