]> granicus.if.org Git - curl/commitdiff
ntlm: Fix format specifiers
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Sat, 5 May 2018 20:09:04 +0000 (22:09 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 14 May 2018 07:42:27 +0000 (09:42 +0200)
lib/vauth/ntlm.c

index ea5e56e37e84d650e25024241dc1d9d59527c5a6..cdb8d8f0d9c4da26dbd6d55e0ec47eeb241dcc42 100644 (file)
@@ -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