1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Add cast to fix Windows compilation.

This commit is contained in:
knielsen@mysql.com
2006-02-07 16:30:26 +01:00
parent c69961ff7f
commit 8269fe79a4

View File

@ -4004,7 +4004,7 @@ int fill_schema_events(THD *thd, TABLE_LIST *tables, COND *cond)
store(thd->lex->select_lex.db, strlen(thd->lex->select_lex.db), scs);
key_len+= event_table->key_info->key_part[1].store_length;
}
if (!(key_buf= alloc_root(thd->mem_root, key_len)))
if (!(key_buf= (byte *)alloc_root(thd->mem_root, key_len)))
{
ret= 1;
goto err;