Skip to content

Commit

Permalink
Avoid implicit conversion from unsigned to signed
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-m committed Sep 28, 2017
1 parent 5a0cd75 commit de7c2e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage/innobase/page/page0page.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1569,7 +1569,7 @@ page_dir_balance_slot(
/* The last directory slot cannot be balanced with the upper
neighbor, as there is none. */

if (UNIV_UNLIKELY(slot_no == page_dir_get_n_slots(page) - 1)) {
if (UNIV_UNLIKELY(slot_no + 1 == page_dir_get_n_slots(page))) {

return;
}
Expand Down

0 comments on commit de7c2e5

Please sign in to comment.