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

In table cache code, fix casts from longlong to long for

'version' variables.

The warnings occur on Windows build, yet they are also are valid
on 32bit Unix.

Fix is to consistently use 64bit integer on all platforms.
This commit is contained in:
Vladislav Vaintroub
2017-09-29 16:44:53 +00:00
parent 8e8a7f85a9
commit 24d9664ad0
5 changed files with 23 additions and 20 deletions

View File

@ -7871,9 +7871,9 @@ static int show_table_definitions(THD *thd, SHOW_VAR *var, char *buff,
static int show_flush_commands(THD *thd, SHOW_VAR *var, char *buff,
enum enum_var_type scope)
{
var->type= SHOW_LONG;
var->type= SHOW_LONGLONG;
var->value= buff;
*((long *) buff)= (long) tdc_refresh_version();
*((longlong *) buff)= (longlong)tdc_refresh_version();
return 0;
}