diff --git a/test/hotspot/gtest/riscv/test_assembler_riscv.cpp b/test/hotspot/gtest/riscv/test_assembler_riscv.cpp index 1e06ab19369f7..7fb3b88fa7ebb 100644 --- a/test/hotspot/gtest/riscv/test_assembler_riscv.cpp +++ b/test/hotspot/gtest/riscv/test_assembler_riscv.cpp @@ -375,7 +375,7 @@ constexpr int64_t PAR_IT_END = 10000; constexpr int64_t NUMBER_THREADS = 4; constexpr int64_t TOTAL_ITERATIONS = NUMBER_THREADS * PAR_IT_END; -template ::max() < (std::numeric_limits::min() + TOTAL_ITERATIONS))> +template ::max() <= (std::numeric_limits::min() + TOTAL_ITERATIONS))> constexpr TESTSIZE result_count() { int64_t range = std::numeric_limits::max() - std::numeric_limits::min() + 1; int64_t rest = TOTAL_ITERATIONS % range;