diff --git a/sql/sql_prepare.cc b/sql/sql_prepare.cc index e005060f64297..5a2c39b160dc3 100644 --- a/sql/sql_prepare.cc +++ b/sql/sql_prepare.cc @@ -5544,7 +5544,8 @@ static char *dup_str_aux(MEM_ROOT *root, const LEX_CSTRING &from, static char *dup_str_aux(MEM_ROOT *root, const char *from, CHARSET_INFO *fromcs, CHARSET_INFO *tocs) { - return dup_str_aux(root, from, from ? strlen(from) : 0 , fromcs, tocs); + return dup_str_aux(root, from, (uint) (from ? strlen(from) : 0), + fromcs, tocs); }