mirror of https://github.com/encounter/SDL.git
A few more compiler warnings fixed.
This commit is contained in:
parent
ae667da638
commit
eb3c66d3c8
|
@ -1161,7 +1161,7 @@ sdltest_randomAsciiStringWithMaximumLength(void *arg)
|
||||||
size_t i;
|
size_t i;
|
||||||
|
|
||||||
targetLen = 16 + SDLTest_RandomUint8();
|
targetLen = 16 + SDLTest_RandomUint8();
|
||||||
result = SDLTest_RandomAsciiStringWithMaximumLength(targetLen);
|
result = SDLTest_RandomAsciiStringWithMaximumLength((int) targetLen);
|
||||||
SDLTest_AssertPass("Call to SDLTest_RandomAsciiStringWithMaximumLength(%d)", targetLen);
|
SDLTest_AssertPass("Call to SDLTest_RandomAsciiStringWithMaximumLength(%d)", targetLen);
|
||||||
SDLTest_AssertCheck(result != NULL, "Validate that result is not NULL");
|
SDLTest_AssertCheck(result != NULL, "Validate that result is not NULL");
|
||||||
if (result != NULL) {
|
if (result != NULL) {
|
||||||
|
@ -1182,7 +1182,7 @@ sdltest_randomAsciiStringWithMaximumLength(void *arg)
|
||||||
|
|
||||||
/* Negative test */
|
/* Negative test */
|
||||||
targetLen = 0;
|
targetLen = 0;
|
||||||
result = SDLTest_RandomAsciiStringWithMaximumLength(targetLen);
|
result = SDLTest_RandomAsciiStringWithMaximumLength((int) targetLen);
|
||||||
SDLTest_AssertPass("Call to SDLTest_RandomAsciiStringWithMaximumLength(%d)", targetLen);
|
SDLTest_AssertPass("Call to SDLTest_RandomAsciiStringWithMaximumLength(%d)", targetLen);
|
||||||
SDLTest_AssertCheck(result == NULL, "Validate that result is NULL");
|
SDLTest_AssertCheck(result == NULL, "Validate that result is NULL");
|
||||||
lastError = (char *)SDL_GetError();
|
lastError = (char *)SDL_GetError();
|
||||||
|
@ -1215,7 +1215,7 @@ sdltest_randomAsciiStringOfSize(void *arg)
|
||||||
|
|
||||||
/* Positive test */
|
/* Positive test */
|
||||||
targetLen = 16 + SDLTest_RandomUint8();
|
targetLen = 16 + SDLTest_RandomUint8();
|
||||||
result = SDLTest_RandomAsciiStringOfSize(targetLen);
|
result = SDLTest_RandomAsciiStringOfSize((int) targetLen);
|
||||||
SDLTest_AssertPass("Call to SDLTest_RandomAsciiStringOfSize(%d)", targetLen);
|
SDLTest_AssertPass("Call to SDLTest_RandomAsciiStringOfSize(%d)", targetLen);
|
||||||
SDLTest_AssertCheck(result != NULL, "Validate that result is not NULL");
|
SDLTest_AssertCheck(result != NULL, "Validate that result is not NULL");
|
||||||
if (result != NULL) {
|
if (result != NULL) {
|
||||||
|
@ -1236,7 +1236,7 @@ sdltest_randomAsciiStringOfSize(void *arg)
|
||||||
|
|
||||||
/* Negative test */
|
/* Negative test */
|
||||||
targetLen = 0;
|
targetLen = 0;
|
||||||
result = SDLTest_RandomAsciiStringOfSize(targetLen);
|
result = SDLTest_RandomAsciiStringOfSize((int) targetLen);
|
||||||
SDLTest_AssertPass("Call to SDLTest_RandomAsciiStringOfSize(%d)", targetLen);
|
SDLTest_AssertPass("Call to SDLTest_RandomAsciiStringOfSize(%d)", targetLen);
|
||||||
SDLTest_AssertCheck(result == NULL, "Validate that result is NULL");
|
SDLTest_AssertCheck(result == NULL, "Validate that result is NULL");
|
||||||
lastError = (char *)SDL_GetError();
|
lastError = (char *)SDL_GetError();
|
||||||
|
|
Loading…
Reference in New Issue