From: Brad King Date: Mon, 9 Dec 2013 19:03:43 +0000 (-0500) Subject: libarchive: Use ARCHIVE_LITERAL_ULL to add ULL integer suffix X-Git-Tag: v3.1.900a~361^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07686034efec92c75547def958ae618754e15013;p=thirdparty%2Flibarchive.git 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. --- diff --git a/libarchive/archive_read_support_format_tar.c b/libarchive/archive_read_support_format_tar.c index 8bd22c7e8..a59a30118 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;