diff --git a/benchmarks/swar/main.cpp b/benchmarks/swar/main.cpp index 9bc7fda51..4a627a708 100644 --- a/benchmarks/swar/main.cpp +++ b/benchmarks/swar/main.cpp @@ -13,14 +13,14 @@ std::default_random_engine engine; char random_ascii() { - static std::uniform_int_distribution dist(0x00, 0x7F); - return dist(engine); + static std::uniform_int_distribution dist(0x00, 0x7F); + return static_cast(dist(engine)); } char32_t random_unicode() { - static std::uniform_int_distribution dist(0x80, 0x10'FFFF); - return dist(engine); + static std::uniform_int_distribution dist(0x80, 0x10'FFFF); + return static_cast(dist(engine)); } float random01()