Skip to content

Commit

Permalink
A few more compiler warnings fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Aug 29, 2017
1 parent ae667da commit eb3c66d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/testautomation_sdltest.c
Expand Up @@ -1161,7 +1161,7 @@ sdltest_randomAsciiStringWithMaximumLength(void *arg)
size_t i;

targetLen = 16 + SDLTest_RandomUint8();
result = SDLTest_RandomAsciiStringWithMaximumLength(targetLen);
result = SDLTest_RandomAsciiStringWithMaximumLength((int) targetLen);
SDLTest_AssertPass("Call to SDLTest_RandomAsciiStringWithMaximumLength(%d)", targetLen);
SDLTest_AssertCheck(result != NULL, "Validate that result is not NULL");
if (result != NULL) {
Expand All @@ -1182,7 +1182,7 @@ sdltest_randomAsciiStringWithMaximumLength(void *arg)

/* Negative test */
targetLen = 0;
result = SDLTest_RandomAsciiStringWithMaximumLength(targetLen);
result = SDLTest_RandomAsciiStringWithMaximumLength((int) targetLen);
SDLTest_AssertPass("Call to SDLTest_RandomAsciiStringWithMaximumLength(%d)", targetLen);
SDLTest_AssertCheck(result == NULL, "Validate that result is NULL");
lastError = (char *)SDL_GetError();
Expand Down Expand Up @@ -1215,7 +1215,7 @@ sdltest_randomAsciiStringOfSize(void *arg)

/* Positive test */
targetLen = 16 + SDLTest_RandomUint8();
result = SDLTest_RandomAsciiStringOfSize(targetLen);
result = SDLTest_RandomAsciiStringOfSize((int) targetLen);
SDLTest_AssertPass("Call to SDLTest_RandomAsciiStringOfSize(%d)", targetLen);
SDLTest_AssertCheck(result != NULL, "Validate that result is not NULL");
if (result != NULL) {
Expand All @@ -1236,7 +1236,7 @@ sdltest_randomAsciiStringOfSize(void *arg)

/* Negative test */
targetLen = 0;
result = SDLTest_RandomAsciiStringOfSize(targetLen);
result = SDLTest_RandomAsciiStringOfSize((int) targetLen);
SDLTest_AssertPass("Call to SDLTest_RandomAsciiStringOfSize(%d)", targetLen);
SDLTest_AssertCheck(result == NULL, "Validate that result is NULL");
lastError = (char *)SDL_GetError();
Expand Down

0 comments on commit eb3c66d

Please sign in to comment.