added static_cast to fix error
This commit is contained in:
parent
d607dab17c
commit
10a9ad9bbb
@ -27,7 +27,7 @@ namespace sc {
|
||||
|
||||
template <typename T>
|
||||
static T choice(const std::vector<T>& vec) {
|
||||
std::uniform_int_distribution<int> dist {0, vec.size() - 1};
|
||||
std::uniform_int_distribution<int> dist {0, static_cast<int>(vec.size()) - 1};
|
||||
return vec[dist(instance()._reng)];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user