summaryrefslogtreecommitdiff
path: root/lib/vauth
diff options
context:
space:
mode:
authorRikard Falkeborn <rikard.falkeborn@gmail.com>2018-05-05 22:09:04 +0200
committerDaniel Stenberg <daniel@haxx.se>2018-05-14 09:42:27 +0200
commitb9446d18e78bec9f86c55746463036f97fcae886 (patch)
tree01b34d08274914a6326d486b7b96e6a00c6bd9fe /lib/vauth
parentdf3647c9c8f145c813ec8c7bd4ec5a6f81d89666 (diff)
downloadcurl-b9446d18e78bec9f86c55746463036f97fcae886.tar.gz
ntlm: Fix format specifiers
Diffstat (limited to 'lib/vauth')
-rw-r--r--lib/vauth/ntlm.c6
1 files changed, 3 insertions, 3 deletions
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