Minor prettyness with types
This commit is contained in:
parent
162a22f0a4
commit
72f46f357d
@ -286,10 +286,10 @@ static char *hydra_putword(char *buf, int val)
|
||||
|
||||
static long hydra_getlong(const char *buf)
|
||||
{
|
||||
return ( (uint32_t) ((uint8_t) buf[0]) )
|
||||
return (int32_t)(( (uint32_t) ((uint8_t) buf[0]) )
|
||||
| ( (uint32_t) ((uint8_t) buf[1]) << 8 )
|
||||
| ( (uint32_t) ((uint8_t) buf[2]) << 16 )
|
||||
| ( (uint32_t) ((uint8_t) buf[3]) << 24 );
|
||||
| ( (uint32_t) ((uint8_t) buf[3]) << 24 ));
|
||||
//return ( buf[3]<<24 | buf[2]<<16 | buf[1]<<8 | buf[0]);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user