From: Rikard Falkeborn Date: Sat, 5 May 2018 20:09:04 +0000 (+0200) Subject: ntlm: Fix format specifiers X-Git-Tag: curl-7_60_0~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b9446d18e78bec9f86c55746463036f97fcae886;p=curl ntlm: Fix format specifiers --- diff --git a/lib/vauth/ntlm.c b/lib/vauth/ntlm.c index ea5e56e37..cdb8d8f0d 100644 --- a/lib/vauth/ntlm.c +++ b/lib/vauth/ntlm.c @@ -63,9 +63,9 @@ /* "NTLMSSP" signature is always in ASCII regardless of the platform */ #define NTLMSSP_SIGNATURE "\x4e\x54\x4c\x4d\x53\x53\x50" -#define SHORTPAIR(x) ((x) & 0xff), (((x) >> 8) & 0xff) -#define LONGQUARTET(x) ((x) & 0xff), (((x) >> 8) & 0xff), \ - (((x) >> 16) & 0xff), (((x) >> 24) & 0xff) +#define SHORTPAIR(x) ((int)((x) & 0xff)), ((int)(((x) >> 8) & 0xff)) +#define LONGQUARTET(x) ((int)((x) & 0xff)), ((int)(((x) >> 8) & 0xff)), \ + ((int)(((x) >> 16) & 0xff)), ((int)(((x) >> 24) & 0xff)) #if DEBUG_ME # define DEBUG_OUT(x) x