fix warning on signedess of comparison

This commit is contained in:
Johann Dreo 2022-01-22 18:40:02 +01:00
commit dfb6f7c2d9

View file

@ -95,7 +95,7 @@ public:
// assert(fortune <= cumulative.back());
if(result - cumulative.begin() >= _pop.size()) {
if(static_cast<size_t>(result - cumulative.begin()) >= _pop.size()) {
return _pop.back();
} else {
return _pop[result - cumulative.begin()];