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

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
This commit is contained in:
Steve Holme 2014-12-13 14:55:26 +00:00
parent c0fc9066a9
commit 2924dd6703

View File

@ -166,8 +166,8 @@ static unsigned int readint_le(unsigned char *buf)
*/ */
static unsigned short readshort_le(unsigned char *buf) static unsigned short readshort_le(unsigned char *buf)
{ {
return ((unsigned short)((unsigned short)buf[0]) | return (unsigned short)((unsigned short)((unsigned short)buf[0]) |
(unsigned short)((unsigned short)buf[1] << 8)); (unsigned short)((unsigned short)buf[1] << 8));
} }
/* /*