aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2014-12-13 14:55:26 +0000
committerSteve Holme <steve_holme@hotmail.com>2014-12-13 14:55:26 +0000
commit2924dd6703eeb1fe72dd7788eabdcc5e65189d8b (patch)
treedf91e25f78e5363054e602388197cdfcb34d63f1
parentc0fc9066a96eaccfc22ca5e4d275cd2bbdd107c6 (diff)
curl_ntlm_msgs.c: Another attempt to fix compilation warning
curl_ntlm_msgs.c:170: warning: conversion to 'short unsigned int' from 'int' may alter its value
-rw-r--r--lib/curl_ntlm_msgs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/curl_ntlm_msgs.c b/lib/curl_ntlm_msgs.c
index 2e3a65c01..0998cb44c 100644
--- a/lib/curl_ntlm_msgs.c
+++ b/lib/curl_ntlm_msgs.c
@@ -166,8 +166,8 @@ static unsigned int readint_le(unsigned char *buf)
*/
static unsigned short readshort_le(unsigned char *buf)
{
- return ((unsigned short)((unsigned short)buf[0]) |
- (unsigned short)((unsigned short)buf[1] << 8));
+ return (unsigned short)((unsigned short)((unsigned short)buf[0]) |
+ (unsigned short)((unsigned short)buf[1] << 8));
}
/*