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:
Anurag Shekhar 2009-05-13 15:41:24 +05:30
commit da0fe3cb31
4 changed files with 8 additions and 8 deletions

View file

@ -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);
}
/*