Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
d8fed4a9
Commit
d8fed4a9
authored
Jun 03, 2017
by
Guolin Ke
Browse files
fix #582
parent
73968a96
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
include/LightGBM/utils/common.h
include/LightGBM/utils/common.h
+1
-0
No files found.
include/LightGBM/utils/common.h
View file @
d8fed4a9
...
@@ -518,6 +518,7 @@ static void ParallelSort(_RanIt _First, _RanIt _Last, _Pr _Pred, _VTRanIt*) {
...
@@ -518,6 +518,7 @@ static void ParallelSort(_RanIt _First, _RanIt _Last, _Pr _Pred, _VTRanIt*) {
size_t
mid
=
left
+
s
;
size_t
mid
=
left
+
s
;
size_t
right
=
mid
+
s
;
size_t
right
=
mid
+
s
;
right
=
std
::
min
(
len
,
right
);
right
=
std
::
min
(
len
,
right
);
if
(
mid
>=
right
)
{
continue
;
}
std
::
copy
(
_First
+
left
,
_First
+
mid
,
buf
+
left
);
std
::
copy
(
_First
+
left
,
_First
+
mid
,
buf
+
left
);
std
::
merge
(
buf
+
left
,
buf
+
mid
,
_First
+
mid
,
_First
+
right
,
_First
+
left
,
_Pred
);
std
::
merge
(
buf
+
left
,
buf
+
mid
,
_First
+
mid
,
_First
+
right
,
_First
+
left
,
_Pred
);
}
}
...
...
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