mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 19:37:16 +02:00
Bug #39802 On Windows, 32-bit time_t should be enforced
This patch fixes compilation warning, "conversion from 'time_t' to 'ulong', possible loss of data". The fix is to typecast time_t to ulong before assigning it to ulong. Backported this from 6.0-bugteam tree. storage/archive/ha_archive.cc: type casting time_t to ulong before assigning. storage/federated/ha_federated.cc: type casting time_t to ulong before assigning. storage/innobase/handler/ha_innodb.cc: type casting time_t to ulong before assigning. storage/myisam/ha_myisam.cc: type casting time_t to ulong before assigning.
This commit is contained in:
parent
bd59628754
commit
da0fe3cb31
4 changed files with 8 additions and 8 deletions
|
|
@ -2850,10 +2850,10 @@ int ha_federated::info(uint flag)
|
|||
stats.data_file_length= stats.records * stats.mean_rec_length;
|
||||
|
||||
if (row[12] != NULL)
|
||||
stats.update_time= (time_t) my_strtoll10(row[12], (char**) 0,
|
||||
stats.update_time= (ulong) my_strtoll10(row[12], (char**) 0,
|
||||
&error);
|
||||
if (row[13] != NULL)
|
||||
stats.check_time= (time_t) my_strtoll10(row[13], (char**) 0,
|
||||
stats.check_time= (ulong) my_strtoll10(row[13], (char**) 0,
|
||||
&error);
|
||||
}
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue