Skip to content

Commit d429f60

Browse files
committed
compilation error on windows
conversion from 'my_off_t' to '::size_t', possible loss of data
1 parent 775a8a0 commit d429f60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

storage/myisam/mi_locking.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ int mi_lock_database(MI_INFO *info, int lock_type)
114114
if (myisam_flush)
115115
{
116116
if (share->file_map)
117-
my_msync(info->dfile, share->file_map, share->mmaped_length, MS_SYNC);
117+
my_msync(info->dfile, share->file_map, (size_t)share->mmaped_length, MS_SYNC);
118118
if (mysql_file_sync(share->kfile, MYF(0)))
119119
mark_crashed= error= my_errno;
120120
if (mysql_file_sync(info->dfile, MYF(0)))
@@ -529,7 +529,7 @@ int _mi_writeinfo(register MI_INFO *info, uint operation)
529529
if (myisam_flush)
530530
{
531531
if (share->file_map)
532-
my_msync(info->dfile, share->file_map, share->mmaped_length, MS_SYNC);
532+
my_msync(info->dfile, share->file_map, (size_t)share->mmaped_length, MS_SYNC);
533533
mysql_file_sync(share->kfile, 0);
534534
mysql_file_sync(info->dfile, 0);
535535
}

0 commit comments

Comments
 (0)