aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2014-12-13 12:51:11 +0000
committerSteve Holme <steve_holme@hotmail.com>2014-12-13 12:51:11 +0000
commit172963005aa32311d6f1d31334f6c963d34389dd (patch)
tree0c4ac7935db04b69229d1369d26d0b91ed2f3540 /lib
parent834608c39d24b211011aa420adf566113149b888 (diff)
curl_ntlm_msgs.c: Fixed compilation warning from commit 783b5c3b11
curl_ntlm_msgs.c:169: warning: conversion to 'short unsigned int' from 'int' may alter its value
Diffstat (limited to 'lib')
-rw-r--r--lib/curl_ntlm_msgs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/curl_ntlm_msgs.c b/lib/curl_ntlm_msgs.c
index 26f20409c..2e3a65c01 100644
--- a/lib/curl_ntlm_msgs.c
+++ b/lib/curl_ntlm_msgs.c
@@ -166,7 +166,8 @@ static unsigned int readint_le(unsigned char *buf)
*/
static unsigned short readshort_le(unsigned char *buf)
{
- return ((unsigned short)buf[0]) | ((unsigned short)buf[1] << 8);
+ return ((unsigned short)((unsigned short)buf[0]) |
+ (unsigned short)((unsigned short)buf[1] << 8));
}
/*