Minor prettyness with types
All checks were successful
Archlinux build / build-arch (push) Successful in 2m52s
Archlinux build / make-test (push) Successful in 58s
Debian build / build-ubuntu (push) Successful in 3m42s
Altlinux build / build-alt (push) Successful in 2m33s

This commit is contained in:
Alexey Khromov 2025-04-26 10:34:33 +03:00
parent 162a22f0a4
commit 72f46f357d

View File

@ -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]);
}