X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/378568f2a60334beff0dc06dffd38b55d4a19e1b..3efcefafd85931ad0c24c68dd0425f89c2021c58:/extract.h diff --git a/extract.h b/extract.h index 6fbaddc6..0ea84e92 100644 --- a/extract.h +++ b/extract.h @@ -25,7 +25,7 @@ * For 8-bit values; needed to fetch a one-byte value. Byte order * isn't relevant, and alignment isn't an issue. */ -#define EXTRACT_U_1(p) (*(p)) +#define EXTRACT_U_1(p) ((uint8_t)(*(p))) #define EXTRACT_S_1(p) ((int8_t)(*(p))) /*