From 6646edf6924d8c518c7f14b6e17a9fc0dbd65677 Mon Sep 17 00:00:00 2001
From: Pierre Wendling <[EMAIL REDACTED]>
Date: Wed, 4 May 2022 13:10:41 -0400
Subject: [PATCH] Test: Fix Windows build for math suite.
---
test/testautomation_math.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/testautomation_math.c b/test/testautomation_math.c
index 26a85be6571..61c3b0e7e3d 100644
--- a/test/testautomation_math.c
+++ b/test/testautomation_math.c
@@ -72,8 +72,8 @@ static int floor_fractionCases(void* args) {
* \brief Checks a range of values between 0 and UINT32_MAX
*/
static int floor_rangeTest(void* args) {
- static const Uint32 ITERATIONS = 10000000;
- static const Uint32 STEP = UINT32_MAX / ITERATIONS;
+ const Uint32 ITERATIONS = 10000000;
+ const Uint32 STEP = SDL_MAX_UINT32 / ITERATIONS;
double test_value = 0.0;
SDLTest_AssertPass("Floor: Testing a range of %u values with %u steps",
ITERATIONS, STEP);