From b9446d18e78bec9f86c55746463036f97fcae886 Mon Sep 17 00:00:00 2001 From: Rikard Falkeborn Date: Sat, 5 May 2018 22:09:04 +0200 Subject: ntlm: Fix format specifiers --- lib/vauth/ntlm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/vauth/ntlm.c') 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 -- cgit v1.2.3