Commit 937ec3c4 authored by Marko Mäkelä's avatar Marko Mäkelä

MDEV-19212: After-merge fix for sizeof(ulong)!=sizeof(ulint)

parent ee7a4f44
......@@ -1568,12 +1568,12 @@ buf_chunk_init(
/* Round down to a multiple of page size,
although it already should be. */
mem_size = ut_2pow_round(mem_size, ulint(srv_page_size));
mem_size = ut_2pow_round<ulint>(mem_size, srv_page_size);
/* Reserve space for the block descriptors. */
mem_size += ut_2pow_round((mem_size >> srv_page_size_shift)
* (sizeof *block)
+ (srv_page_size - 1),
ulint(srv_page_size));
mem_size += ut_2pow_round<ulint>((mem_size >> srv_page_size_shift)
* (sizeof *block)
+ (srv_page_size - 1),
srv_page_size);
DBUG_EXECUTE_IF("ib_buf_chunk_init_fails", return(NULL););
......
......@@ -897,8 +897,8 @@ log_buffer_switch()
ut_ad(log_write_mutex_own());
const byte* old_buf = log_sys.buf;
ulint area_end = ut_calc_align(
log_sys.buf_free, ulint(OS_FILE_LOG_BLOCK_SIZE));
ulong area_end = ut_calc_align(
log_sys.buf_free, ulong(OS_FILE_LOG_BLOCK_SIZE));
if (log_sys.first_in_use) {
log_sys.first_in_use = false;
......
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