Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
b4e862bc
Commit
b4e862bc
authored
Dec 22, 2010
by
Sergey Petrunya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compile error on Windows: instead of round(X) use floor(X+0.5)
parent
f1cbc3b3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
sql/multi_range_read.cc
sql/multi_range_read.cc
+1
-1
No files found.
sql/multi_range_read.cc
View file @
b4e862bc
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment