mirror of
https://github.com/MariaDB/server.git
synced 2025-01-30 10:31:54 +01:00
Fix a typo which lead to compiler error on 32 bit systems
This commit is contained in:
parent
42bda685db
commit
d8a60dd4c9
1 changed files with 1 additions and 1 deletions
|
@ -752,7 +752,7 @@ repeat:
|
||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
DBUG_ASSERT(file_offset <= static_cast<my_off_t>(stat_info.st_size));
|
DBUG_ASSERT(file_offset <= static_cast<my_off_t>(stat_info.st_size));
|
||||||
to_copy_size = static_cast<my_off_t>(stat_info.st_size) - file_offset;
|
to_copy_size = static_cast<size_t>(stat_info.st_size - file_offset);
|
||||||
to_copy_size = to_copy_size >= TRANSLOG_PAGE_SIZE ?
|
to_copy_size = to_copy_size >= TRANSLOG_PAGE_SIZE ?
|
||||||
(align_down(to_copy_size, TRANSLOG_PAGE_SIZE) - TRANSLOG_PAGE_SIZE) : 0;
|
(align_down(to_copy_size, TRANSLOG_PAGE_SIZE) - TRANSLOG_PAGE_SIZE) : 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue