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
6068ba5a
Commit
6068ba5a
authored
Sep 29, 2017
by
olofer
Committed by
Huan Zhang
Sep 29, 2017
Browse files
fix integer signed/unsigned compare warning with g++ (#944)
* Remove signed/unsigned integer compare warning with g++
parent
f90dfaf3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
include/LightGBM/utils/random.h
include/LightGBM/utils/random.h
+1
-1
No files found.
include/LightGBM/utils/random.h
View file @
6068ba5a
...
@@ -81,7 +81,7 @@ public:
...
@@ -81,7 +81,7 @@ public:
}
}
}
else
{
}
else
{
std
::
set
<
int
>
sample_set
;
std
::
set
<
int
>
sample_set
;
while
(
sample_set
.
size
()
<
K
)
{
while
(
static_cast
<
int
>
(
sample_set
.
size
()
)
<
K
)
{
int
next
=
RandInt32
()
%
N
;
int
next
=
RandInt32
()
%
N
;
if
(
sample_set
.
count
(
next
)
==
0
)
{
if
(
sample_set
.
count
(
next
)
==
0
)
{
sample_set
.
insert
(
next
);
sample_set
.
insert
(
next
);
...
...
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