Skip to content

Commit

Permalink
The compiler warnings fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
sanja-byelkin committed Sep 24, 2015
1 parent 29ac245 commit 5cc149f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sql/item_cmpfunc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2692,7 +2692,7 @@ Item_func_if::str_op(String *str)
String *res=arg->val_str(str);
if (res)
res->set_charset(collation.collation);
if (null_value=arg->null_value)
if ((null_value=arg->null_value))
res= NULL;
return res;
}
Expand All @@ -2704,7 +2704,7 @@ Item_func_if::decimal_op(my_decimal *decimal_value)
DBUG_ASSERT(fixed == 1);
Item *arg= args[0]->val_bool() ? args[1] : args[2];
my_decimal *value= arg->val_decimal(decimal_value);
if (null_value= arg->null_value)
if ((null_value= arg->null_value))
value= NULL;
return value;
}
Expand Down

0 comments on commit 5cc149f

Please sign in to comment.