]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
libarchive: Use ARCHIVE_LITERAL_ULL to add ULL integer suffix
authorBrad King <brad.king@kitware.com>
Mon, 9 Dec 2013 19:03:43 +0000 (14:03 -0500)
committerBrad King <brad.king@kitware.com>
Mon, 9 Dec 2013 19:09:16 +0000 (14:09 -0500)
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.

libarchive/archive_read_support_format_tar.c

index 8bd22c7e83dd0798579ef539d73070a89eba6d21..a59a3011803934e4f1b939d3feae1bb7c46b9b4a 100644 (file)
@@ -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;