From: Nick Zitzmann Date: Sat, 16 Feb 2013 21:21:09 +0000 (-0700) Subject: ntlm_core: fix compiler warning when building with clang X-Git-Tag: curl-7_30_0~330 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=12ea5beffc2fb0db09db0ac291f362c1f81b5f03;p=thirdparty%2Fcurl.git ntlm_core: fix compiler warning when building with clang Fixed a 64-to-32 compiler warning raised when building with clang and the --with-darwinssl option. --- diff --git a/lib/curl_ntlm_core.c b/lib/curl_ntlm_core.c index 8f3c00d645..79aeb08b3f 100644 --- a/lib/curl_ntlm_core.c +++ b/lib/curl_ntlm_core.c @@ -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);