Skip to content

Commit

Permalink
Fixed warning with type mix in comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
Bogdan Degtyariov committed Sep 12, 2018
1 parent 7e902b5 commit 923e29c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mysql_strings/decimal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1932,7 +1932,7 @@ static int do_sub(const decimal_t *from1, const decimal_t *from2,
}

if (to == 0) /* decimal_cmp() */
return carry == from1->sign ? 1 : -1;
return carry == (int)from1->sign ? 1 : -1;

sanity(to);

Expand Down

0 comments on commit 923e29c

Please sign in to comment.