Skip to content

Commit 409ed60

Browse files
committed
Fix compile failure on Windows: use explicit type casts
1 parent 86167e9 commit 409ed60

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sql/multi_range_read.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1714,9 +1714,9 @@ bool DsMrr_impl::get_disk_sweep_mrr_cost(uint keynr, ha_rows rows, uint flags,
17141714
Request memory to finish the scan in one pass but do not request
17151715
more than @@mrr_buff_size.
17161716
*/
1717-
*buffer_size = MY_MIN(extra_mem_overhead + rows*elem_size,
1718-
MY_MAX(table->in_use->variables.mrr_buff_size,
1719-
extra_mem_overhead));
1717+
*buffer_size= (uint) MY_MIN(extra_mem_overhead + elem_size*(ulong)rows,
1718+
MY_MAX(table->in_use->variables.mrr_buff_size,
1719+
extra_mem_overhead));
17201720
}
17211721

17221722
if (elem_size + extra_mem_overhead > *buffer_size)

0 commit comments

Comments
 (0)