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
@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user