src: Fix compile error

This commit is contained in:
Tatsuhiro Tsujikawa 2017-09-20 22:08:08 +09:00
parent 650a0cfbff
commit 91f062f873
1 changed files with 1 additions and 1 deletions

View File

@ -1374,7 +1374,7 @@ void sample(Sampling &smp, Stats &stats, Stat *s) {
stats.push_back(*s);
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);
if (i < smp.max_samples) {
stats[i] = *s;