Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
  • Loading branch information
captain-caveman2k committed Dec 13, 2014
1 parent c0fc906 commit 2924dd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/curl_ntlm_msgs.c
Expand Up @@ -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));
}

/*
Expand Down

0 comments on commit 2924dd6

Please sign in to comment.