Commit 735c6ea3 authored by Eugene Kosov's avatar Eugene Kosov

fix Win build

parent 3daef523
......@@ -590,7 +590,7 @@ dberr_t mapped_file_t::map(const char *path, int flags) noexcept
return DB_ERROR;
}
void *ptr= my_mmap(0, stat.st_size,
void *ptr= my_mmap(0, static_cast<size_t>(stat.st_size),
srv_read_only_mode ? PROT_READ : PROT_READ | PROT_WRITE,
MAP_SHARED_VALIDATE | flags, fd, 0);
mysql_file_close(fd, MYF(MY_WME));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment