Skip to content

Commit

Permalink
compilation error on windows
Browse files Browse the repository at this point in the history
conversion from 'my_off_t' to '::size_t', possible loss of data
  • Loading branch information
vuvova committed Feb 6, 2018
1 parent 775a8a0 commit d429f60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions storage/myisam/mi_locking.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ int mi_lock_database(MI_INFO *info, int lock_type)
if (myisam_flush)
{
if (share->file_map)
my_msync(info->dfile, share->file_map, share->mmaped_length, MS_SYNC);
my_msync(info->dfile, share->file_map, (size_t)share->mmaped_length, MS_SYNC);
if (mysql_file_sync(share->kfile, MYF(0)))
mark_crashed= error= my_errno;
if (mysql_file_sync(info->dfile, MYF(0)))
Expand Down Expand Up @@ -529,7 +529,7 @@ int _mi_writeinfo(register MI_INFO *info, uint operation)
if (myisam_flush)
{
if (share->file_map)
my_msync(info->dfile, share->file_map, share->mmaped_length, MS_SYNC);
my_msync(info->dfile, share->file_map, (size_t)share->mmaped_length, MS_SYNC);
mysql_file_sync(share->kfile, 0);
mysql_file_sync(info->dfile, 0);
}
Expand Down

0 comments on commit d429f60

Please sign in to comment.