diff --git a/sql/sql_sort.h b/sql/sql_sort.h index 430f313631f..2c01b01b607 100644 --- a/sql/sql_sort.h +++ b/sql/sql_sort.h @@ -300,7 +300,7 @@ public: Sort_param() { - memset(this, 0, sizeof(*this)); + memset(reinterpret_cast(this), 0, sizeof(*this)); } void init_for_filesort(uint sortlen, TABLE *table, ha_rows maxrows, bool sort_positions);