]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
ntlm_core: fix compiler warning when building with clang
authorNick Zitzmann <nickzman@gmail.com>
Sat, 16 Feb 2013 21:21:09 +0000 (14:21 -0700)
committerNick Zitzmann <nickzman@gmail.com>
Sat, 16 Feb 2013 21:21:09 +0000 (14:21 -0700)
Fixed a 64-to-32 compiler warning raised when building with
clang and the --with-darwinssl option.

lib/curl_ntlm_core.c

index 8f3c00d64538c17651a860fe8618c16116a01263..79aeb08b3fdc468639d98528e1f3542b294e951c 100644 (file)
@@ -421,7 +421,7 @@ CURLcode Curl_ntlm_core_mk_nt_hash(struct SessionHandle *data,
 #elif defined(USE_NSS)
     Curl_md4it(ntbuffer, pw, 2 * len);
 #elif defined(USE_DARWINSSL)
-    (void)CC_MD4(pw, 2 * len, ntbuffer);
+    (void)CC_MD4(pw, (CC_LONG)(2 * len), ntbuffer);
 #endif
 
     memset(ntbuffer + 16, 0, 21 - 16);