mirror of
https://github.com/curl/curl.git
synced 2026-08-15 12:03:48 +03: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:
parent
c0fc9066a9
commit
2924dd6703
1 changed files with 2 additions and 2 deletions
|
|
@ -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));
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue