Fix usage of sizeof() in test/testgles*.c files
(cherry-picked from commit 71f2864b3a)
This commit is contained in:
1 parent
3a885f888a
commit
4d605ae002
3 files changed
+3
-3
No files matched your search
+1
-1
@@ -173,7 +173,7 @@ main(int argc, char *argv[])
|
|||||||
quit(2);
|
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) {
|
if (context == NULL) {
|
||||||
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Out of memory!\n");
|
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Out of memory!\n");
|
||||||
quit(2);
|
quit(2);
|
||||||
|
|||||||
+1
-1
@@ -612,7 +612,7 @@ main(int argc, char *argv[])
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
context = (SDL_GLContext *)SDL_calloc(state->num_windows, sizeof(context));
|
context = (SDL_GLContext *)SDL_calloc(state->num_windows, sizeof(*context));
|
||||||
if (context == NULL) {
|
if (context == NULL) {
|
||||||
SDL_Log("Out of memory!\n");
|
SDL_Log("Out of memory!\n");
|
||||||
quit(2);
|
quit(2);
|
||||||
|
|||||||
@@ -522,7 +522,7 @@ main(int argc, char *argv[])
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
context = (SDL_GLContext *)SDL_calloc(state->num_windows, sizeof(context));
|
context = (SDL_GLContext *)SDL_calloc(state->num_windows, sizeof(*context));
|
||||||
if (context == NULL) {
|
if (context == NULL) {
|
||||||
SDL_Log("Out of memory!\n");
|
SDL_Log("Out of memory!\n");
|
||||||
quit(2);
|
quit(2);
|
||||||
|
|||||||
Reference in new issue
Block a user