Fix warning: suggest parentheses around '+' inside '<<' in lib/ipmi_main.c

This commit is contained in:
Dennis Schridde 2016-04-11 16:38:39 +02:00
parent 4520b6ff0e
commit d1b0e68515

View File

@ -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 {