Skip to content

Commit

Permalink
Test: Fix Windows build for math suite.
Browse files Browse the repository at this point in the history
  • Loading branch information
FtZPetruska authored and slouken committed Jun 15, 2022
1 parent d9ff638 commit 6646edf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/testautomation_math.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6646edf

Please sign in to comment.