From 470c0c597aac6b096530582b20993d298af6ad81 Mon Sep 17 00:00:00 2001 From: dashodanger Date: Fri, 26 Jul 2024 08:52:05 -0600 Subject: [PATCH] Test fix for 32-bit CI --- libraries/steve/src/Rand.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/steve/src/Rand.h b/libraries/steve/src/Rand.h index 107fd6e2b..bd020b118 100644 --- a/libraries/steve/src/Rand.h +++ b/libraries/steve/src/Rand.h @@ -30,12 +30,12 @@ class Rand template static const T &in(const std::set &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 inline static const T &in(const std::vector &v) { - return v[(unsigned int)next(0ull, v.size() - 1)]; + return v[next((uint64_t)0, (uint64_t)v.size() - 1)]; } }; } // namespace steve