Commit 6068ba5a authored by olofer's avatar olofer Committed by Huan Zhang
Browse files

fix integer signed/unsigned compare warning with g++ (#944)

* Remove signed/unsigned integer compare warning with g++
parent f90dfaf3
...@@ -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);
......
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