mirror of https://github.com/libsdl-org/SDL.git
SDL_test: fix "'function': different 'const' qualifiers" warning in SDL_test_harness
This commit is contained in:
parent
9e4c657ed8
commit
523e6530a8
|
|
@ -515,7 +515,7 @@ int SDLTest_ExecuteTestSuiteRunner(SDLTest_TestSuiteRunner *runner)
|
|||
|
||||
arraySuites = SDL_malloc(nbSuites * sizeof(int));
|
||||
if (!arraySuites) {
|
||||
SDL_free(failedTests);
|
||||
SDL_free((void *)failedTests);
|
||||
return SDL_OutOfMemory();
|
||||
}
|
||||
for (i = 0; i < nbSuites; i++) {
|
||||
|
|
@ -588,7 +588,7 @@ int SDLTest_ExecuteTestSuiteRunner(SDLTest_TestSuiteRunner *runner)
|
|||
arrayTestCases = SDL_malloc(nbTestCases * sizeof(int));
|
||||
if (!arrayTestCases) {
|
||||
SDL_free(arraySuites);
|
||||
SDL_free(failedTests);
|
||||
SDL_free((void *)failedTests);
|
||||
return SDL_OutOfMemory();
|
||||
}
|
||||
for (j = 0; j < nbTestCases; j++) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue