mirror of
https://github.com/moparisthebest/curl
synced 2025-03-01 01:41:50 -05: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:
parent
834608c39d
commit
172963005a
@ -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));
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user