fix warning on signedess of comparison
This commit is contained in:
parent
e5b5e8807d
commit
dfb6f7c2d9
1 changed files with 1 additions and 1 deletions
|
|
@ -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()];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue