Skip to content

Commit

Permalink
MDEV-8827: Fix the 32-bit build
Browse files Browse the repository at this point in the history
Follow-up to 07ba556:
Use the correct 64-bit type name ulonglong instead of ulint,
like in mysql/mysql-server@4e0100d
  • Loading branch information
dr-m committed Jul 23, 2019
1 parent 739f523 commit 9d93f9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion storage/innobase/handler/ha_innodb.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10476,7 +10476,7 @@ ha_innobase::get_auto_increment(
if (increment > 1 && thd_sql_command(user_thd) != SQLCOM_ALTER_TABLE
&& autoinc < col_max_value) {

ulint prev_auto_inc = autoinc;
ulonglong prev_auto_inc = autoinc;

autoinc = ((autoinc - 1) + increment - offset)/ increment;

Expand Down
2 changes: 1 addition & 1 deletion storage/xtradb/handler/ha_innodb.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11745,7 +11745,7 @@ ha_innobase::get_auto_increment(
if (increment > 1 && thd_sql_command(user_thd) != SQLCOM_ALTER_TABLE
&& autoinc < col_max_value) {

ulint prev_auto_inc = autoinc;
ulonglong prev_auto_inc = autoinc;

autoinc = ((autoinc - 1) + increment - offset)/ increment;

Expand Down

0 comments on commit 9d93f9d

Please sign in to comment.