mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 10:37:22 +00:00
Fix warning: suggest parentheses around '+' inside '<<' in lib/ipmi_main.c
This commit is contained in:
parent
4520b6ff0e
commit
d1b0e68515
@ -342,7 +342,7 @@ ipmi_parse_hex(const char *str)
|
||||
else /* it's A-F or a-f */
|
||||
b = (*p | 0x20) - 'a' + 10; /* convert to lowercase and to 10-15 */
|
||||
|
||||
*q = *q + b << shift;
|
||||
*q = *q + (b << shift);
|
||||
if (shift)
|
||||
shift = 0;
|
||||
else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user