Skip to content

Commit 5cc149f

Browse files
committed
The compiler warnings fixed.
1 parent 29ac245 commit 5cc149f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sql/item_cmpfunc.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2692,7 +2692,7 @@ Item_func_if::str_op(String *str)
26922692
String *res=arg->val_str(str);
26932693
if (res)
26942694
res->set_charset(collation.collation);
2695-
if (null_value=arg->null_value)
2695+
if ((null_value=arg->null_value))
26962696
res= NULL;
26972697
return res;
26982698
}
@@ -2704,7 +2704,7 @@ Item_func_if::decimal_op(my_decimal *decimal_value)
27042704
DBUG_ASSERT(fixed == 1);
27052705
Item *arg= args[0]->val_bool() ? args[1] : args[2];
27062706
my_decimal *value= arg->val_decimal(decimal_value);
2707-
if (null_value= arg->null_value)
2707+
if ((null_value= arg->null_value))
27082708
value= NULL;
27092709
return value;
27102710
}

0 commit comments

Comments
 (0)