test: Fix for negative int that was now a size_t (thanks, Ozkan!).

Fixes Bugzilla #3787.
This commit is contained in:
Ryan C. Gordon 2017-08-29 18:16:38 -04:00
parent 21e32bac10
commit 4fc0163853

View File

@ -35,6 +35,7 @@ sdltest_generateRunSeed(void *arg)
{
char* result;
size_t i, l;
int j;
for (i = 1; i <= 10; i += 3) {
result = SDLTest_GenerateRunSeed((const int)i);
@ -48,8 +49,8 @@ sdltest_generateRunSeed(void *arg)
}
/* Negative cases */
for (i = -2; i <= 0; i++) {
result = SDLTest_GenerateRunSeed((const int)i);
for (j = -2; j <= 0; i++) {
result = SDLTest_GenerateRunSeed((const int)j);
SDLTest_AssertPass("Call to SDLTest_GenerateRunSeed()");
SDLTest_AssertCheck(result == NULL, "Verify returned value is not NULL");
}