فهرست منبع

libarchive: Use ARCHIVE_LITERAL_ULL to add ULL integer suffix

The macro maps to an implementation that works on older compilers
when necessary.
Brad King 12 سال پیش
والد
کامیت
0bff4df5f6
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      Utilities/cmlibarchive/libarchive/archive_read_support_format_tar.c

+ 1 - 1
Utilities/cmlibarchive/libarchive/archive_read_support_format_tar.c

@@ -2487,7 +2487,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;