Skip to content

Commit

Permalink
Test fix for 32-bit CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dashodanger committed Jul 26, 2024
1 parent 064cf18 commit 470c0c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/steve/src/Rand.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ class Rand
template <class T> static const T &in(const std::set<T> &s)
{
auto it(s.begin());
std::advance(it, next(0ull, (uint64_t)s.size() - 1));
std::advance(it, next((uint64_t)0, (uint64_t)s.size() - 1));
return *it;
}
template <class T> inline static const T &in(const std::vector<T> &v)
{
return v[(unsigned int)next(0ull, v.size() - 1)];
return v[next((uint64_t)0, (uint64_t)v.size() - 1)];
}
};
} // namespace steve

0 comments on commit 470c0c5

Please sign in to comment.