Skip to content

Commit

Permalink
curl_ntlm_msgs.c: Fixed compilation warning from commit 783b5c3
Browse files Browse the repository at this point in the history
curl_ntlm_msgs.c:169: warning: conversion to 'short unsigned int' from
                      'int' may alter its value
  • Loading branch information
captain-caveman2k committed Dec 13, 2014
1 parent 834608c commit 1729630
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/curl_ntlm_msgs.c
Expand Up @@ -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));
}

/*
Expand Down

0 comments on commit 1729630

Please sign in to comment.