Commit dad1c7a4 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

Fix clang warning (suggest parentheses)

parent 81542bde
...@@ -1909,11 +1909,13 @@ longlong Item_func_neg::int_op() ...@@ -1909,11 +1909,13 @@ longlong Item_func_neg::int_op()
return raise_integer_overflow(); return raise_integer_overflow();
if (value == LONGLONG_MIN) if (value == LONGLONG_MIN)
{
if (args[0]->unsigned_flag != unsigned_flag) if (args[0]->unsigned_flag != unsigned_flag)
/* negation of LONGLONG_MIN is LONGLONG_MIN. */ /* negation of LONGLONG_MIN is LONGLONG_MIN. */
return LONGLONG_MIN; return LONGLONG_MIN;
else else
return raise_integer_overflow(); return raise_integer_overflow();
}
return check_integer_overflow(-value, !args[0]->unsigned_flag && value < 0); return check_integer_overflow(-value, !args[0]->unsigned_flag && value < 0);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment