From: Guy Harris Date: Sun, 18 Dec 2016 02:43:04 +0000 (-0800) Subject: The bit masks are *unsigned* 64-bit integers; mark them as such. X-Git-Tag: libpcap-1.9.0-rc1~33 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/42470a52648a070c541048ffd080eb0e4232525b?ds=inline The bit masks are *unsigned* 64-bit integers; mark them as such. --- diff --git a/pcap-int.h b/pcap-int.h index d48f61c9..eec65429 100644 --- a/pcap-int.h +++ b/pcap-int.h @@ -73,14 +73,14 @@ extern "C" { * Swap byte ordering of unsigned long long timestamp on a big endian * machine. */ -#define SWAPLL(ull) ((ull & 0xff00000000000000LL) >> 56) | \ - ((ull & 0x00ff000000000000LL) >> 40) | \ - ((ull & 0x0000ff0000000000LL) >> 24) | \ - ((ull & 0x000000ff00000000LL) >> 8) | \ - ((ull & 0x00000000ff000000LL) << 8) | \ - ((ull & 0x0000000000ff0000LL) << 24) | \ - ((ull & 0x000000000000ff00LL) << 40) | \ - ((ull & 0x00000000000000ffLL) << 56) +#define SWAPLL(ull) ((ull & 0xff00000000000000ULL) >> 56) | \ + ((ull & 0x00ff000000000000ULL) >> 40) | \ + ((ull & 0x0000ff0000000000ULL) >> 24) | \ + ((ull & 0x000000ff00000000ULL) >> 8) | \ + ((ull & 0x00000000ff000000ULL) << 8) | \ + ((ull & 0x0000000000ff0000ULL) << 24) | \ + ((ull & 0x000000000000ff00ULL) << 40) | \ + ((ull & 0x00000000000000ffULL) << 56) #endif /* _MSC_VER */