src: Fix compile error
This commit is contained in:
parent
650a0cfbff
commit
91f062f873
|
@ -1374,7 +1374,7 @@ void sample(Sampling &smp, Stats &stats, Stat *s) {
|
||||||
stats.push_back(*s);
|
stats.push_back(*s);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
auto d = std::uniform_int_distribution<>(0, smp.n - 1);
|
auto d = std::uniform_int_distribution<unsigned long>(0, smp.n - 1);
|
||||||
auto i = d(gen);
|
auto i = d(gen);
|
||||||
if (i < smp.max_samples) {
|
if (i < smp.max_samples) {
|
||||||
stats[i] = *s;
|
stats[i] = *s;
|
||||||
|
|
Loading…
Reference in New Issue