Fix usage of sizeof() in test/testgles*.c files

This commit is contained in:
Sylvain committed 2022-11-17 14:55:49 +01:00
1 parent 89572af6a8
commit 71f2864b3a
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -173,7 +173,7 @@ main(int argc, char *argv[])
quit(2);
}
context = (SDL_GLContext *)SDL_calloc(state->num_windows, sizeof(context));
context = (SDL_GLContext *)SDL_calloc(state->num_windows, sizeof(*context));
if (context == NULL) {
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Out of memory!\n");
quit(2);