diff options
author | Sergey Petrunya <psergey@askmonty.org> | 2010-12-22 02:26:35 +0300 |
---|---|---|
committer | Sergey Petrunya <psergey@askmonty.org> | 2010-12-22 02:26:35 +0300 |
commit | f51a26885faa0106286e63fd15f18dae6f618508 (patch) | |
tree | 98184b9210b7892cc693508de0a52dcf1d784f1c /sql/multi_range_read.cc | |
parent | 33e40f7d5bdffd1b394e122095a477893110e105 (diff) | |
download | mariadb-git-f51a26885faa0106286e63fd15f18dae6f618508.tar.gz |
Fix compile error on Windows: instead of round(X) use floor(X+0.5)
Diffstat (limited to 'sql/multi_range_read.cc')
-rw-r--r-- | sql/multi_range_read.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/multi_range_read.cc b/sql/multi_range_read.cc index de0a29aab06..d9dcd354b3e 100644 --- a/sql/multi_range_read.cc +++ b/sql/multi_range_read.cc @@ -1112,7 +1112,7 @@ bool DsMrr_impl::setup_buffer_sharing(uint key_size_in_keybuf, (ulonglong2double(rowids_size) + key_buff_elem_size)); ptrdiff_t bytes_for_rowids= - (ptrdiff_t)round(fraction_for_rowids * (full_buf_end - full_buf)); + (ptrdiff_t)floor(0.5 + fraction_for_rowids * (full_buf_end - full_buf)); ptrdiff_t bytes_for_keys= (full_buf_end - full_buf) - bytes_for_rowids; |