testautomation_mouse: fix format '%i' expecting 'int' instead of 'Uint32' Emitted by Nintendo 3DS's gcc
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
diff --git a/test/testautomation_mouse.c b/test/testautomation_mouse.c
index b99afc1..b9e74cb 100644
--- a/test/testautomation_mouse.c
+++ b/test/testautomation_mouse.c
@@ -41,21 +41,21 @@ mouse_getMouseState(void *arg)
/* Case where x, y pointer is NULL */
state = SDL_GetMouseState(NULL, NULL);
SDLTest_AssertPass("Call to SDL_GetMouseState(NULL, NULL)");
- SDLTest_AssertCheck(_mouseStateCheck(state), "Validate state returned from function, got: %i", state);
+ SDLTest_AssertCheck(_mouseStateCheck(state), "Validate state returned from function, got: %u", state);
/* Case where x pointer is not NULL */
x = INT_MIN;
state = SDL_GetMouseState(&x, NULL);
SDLTest_AssertPass("Call to SDL_GetMouseState(&x, NULL)");
SDLTest_AssertCheck(x > INT_MIN, "Validate that value of x is > INT_MIN, got: %i", x);
- SDLTest_AssertCheck(_mouseStateCheck(state), "Validate state returned from function, got: %i", state);
+ SDLTest_AssertCheck(_mouseStateCheck(state), "Validate state returned from function, got: %u", state);
/* Case where y pointer is not NULL */
y = INT_MIN;
state = SDL_GetMouseState(NULL, &y);
SDLTest_AssertPass("Call to SDL_GetMouseState(NULL, &y)");
SDLTest_AssertCheck(y > INT_MIN, "Validate that value of y is > INT_MIN, got: %i", y);
- SDLTest_AssertCheck(_mouseStateCheck(state), "Validate state returned from function, got: %i", state);
+ SDLTest_AssertCheck(_mouseStateCheck(state), "Validate state returned from function, got: %u", state);
/* Case where x and y pointer is not NULL */
x = INT_MIN;
@@ -64,7 +64,7 @@ mouse_getMouseState(void *arg)
SDLTest_AssertPass("Call to SDL_GetMouseState(&x, &y)");
SDLTest_AssertCheck(x > INT_MIN, "Validate that value of x is > INT_MIN, got: %i", x);
SDLTest_AssertCheck(y > INT_MIN, "Validate that value of y is > INT_MIN, got: %i", y);
- SDLTest_AssertCheck(_mouseStateCheck(state), "Validate state returned from function, got: %i", state);
+ SDLTest_AssertCheck(_mouseStateCheck(state), "Validate state returned from function, got: %u", state);
return TEST_COMPLETED;
}
@@ -87,21 +87,21 @@ mouse_getRelativeMouseState(void *arg)
/* Case where x, y pointer is NULL */
state = SDL_GetRelativeMouseState(NULL, NULL);
SDLTest_AssertPass("Call to SDL_GetRelativeMouseState(NULL, NULL)");
- SDLTest_AssertCheck(_mouseStateCheck(state), "Validate state returned from function, got: %i", state);
+ SDLTest_AssertCheck(_mouseStateCheck(state), "Validate state returned from function, got: %u", state);
/* Case where x pointer is not NULL */
x = INT_MIN;
state = SDL_GetRelativeMouseState(&x, NULL);
SDLTest_AssertPass("Call to SDL_GetRelativeMouseState(&x, NULL)");
SDLTest_AssertCheck(x > INT_MIN, "Validate that value of x is > INT_MIN, got: %i", x);
- SDLTest_AssertCheck(_mouseStateCheck(state), "Validate state returned from function, got: %i", state);
+ SDLTest_AssertCheck(_mouseStateCheck(state), "Validate state returned from function, got: %u", state);
/* Case where y pointer is not NULL */
y = INT_MIN;
state = SDL_GetRelativeMouseState(NULL, &y);
SDLTest_AssertPass("Call to SDL_GetRelativeMouseState(NULL, &y)");
SDLTest_AssertCheck(y > INT_MIN, "Validate that value of y is > INT_MIN, got: %i", y);
- SDLTest_AssertCheck(_mouseStateCheck(state), "Validate state returned from function, got: %i", state);
+ SDLTest_AssertCheck(_mouseStateCheck(state), "Validate state returned from function, got: %u", state);
/* Case where x and y pointer is not NULL */
x = INT_MIN;
@@ -110,7 +110,7 @@ mouse_getRelativeMouseState(void *arg)
SDLTest_AssertPass("Call to SDL_GetRelativeMouseState(&x, &y)");
SDLTest_AssertCheck(x > INT_MIN, "Validate that value of x is > INT_MIN, got: %i", x);
SDLTest_AssertCheck(y > INT_MIN, "Validate that value of y is > INT_MIN, got: %i", y);
- SDLTest_AssertCheck(_mouseStateCheck(state), "Validate state returned from function, got: %i", state);
+ SDLTest_AssertCheck(_mouseStateCheck(state), "Validate state returned from function, got: %u", state);
return TEST_COMPLETED;
}