Commit 17296300 authored by Steve Holme's avatar Steve Holme
Browse files

curl_ntlm_msgs.c: Fixed compilation warning from commit 783b5c3b

curl_ntlm_msgs.c:169: warning: conversion to 'short unsigned int' from
                      'int' may alter its value
parent 834608c3
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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));
}

/*