1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

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
This commit is contained in:
Steve Holme 2014-12-13 12:51:11 +00:00
parent 834608c39d
commit 172963005a

View File

@ -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));
}
/*