Commit 409ed60b authored by Sergei Petrunia's avatar Sergei Petrunia

Fix compile failure on Windows: use explicit type casts

parent 86167e90
...@@ -1714,7 +1714,7 @@ bool DsMrr_impl::get_disk_sweep_mrr_cost(uint keynr, ha_rows rows, uint flags, ...@@ -1714,7 +1714,7 @@ bool DsMrr_impl::get_disk_sweep_mrr_cost(uint keynr, ha_rows rows, uint flags,
Request memory to finish the scan in one pass but do not request Request memory to finish the scan in one pass but do not request
more than @@mrr_buff_size. more than @@mrr_buff_size.
*/ */
*buffer_size = MY_MIN(extra_mem_overhead + rows*elem_size, *buffer_size= (uint) MY_MIN(extra_mem_overhead + elem_size*(ulong)rows,
MY_MAX(table->in_use->variables.mrr_buff_size, MY_MAX(table->in_use->variables.mrr_buff_size,
extra_mem_overhead)); extra_mem_overhead));
} }
......
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