From 052acd4e38e31fc0b14c919ea6120fb08599a0cb Mon Sep 17 00:00:00 2001 From: pstef <3462925+pstef@users.noreply.github.com> Date: Tue, 25 Mar 2025 20:15:20 +0000 Subject: [PATCH] Reorder arguments in calls to calloc to silence calloc-tran sposed-args warnings. --- gfx/drivers/gl2.c | 4 ++-- libretro-common/lists/linked_list.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gfx/drivers/gl2.c b/gfx/drivers/gl2.c index c0915e3383..247667865d 100644 --- a/gfx/drivers/gl2.c +++ b/gfx/drivers/gl2.c @@ -4554,9 +4554,9 @@ static void *gl2_init(const video_info_t *video, /* Empty buffer that we use to clear out * the texture with on res change. */ - gl->empty_buf = calloc(sizeof(uint32_t), gl->tex_w * gl->tex_h); + gl->empty_buf = calloc(gl->tex_w * gl->tex_h, sizeof(uint32_t)); - gl->conv_buffer = calloc(sizeof(uint32_t), gl->tex_w * gl->tex_h); + gl->conv_buffer = calloc(gl->tex_w * gl->tex_h, sizeof(uint32_t)); if (!gl->conv_buffer) goto error; diff --git a/libretro-common/lists/linked_list.c b/libretro-common/lists/linked_list.c index fce754d5eb..18b0631840 100644 --- a/libretro-common/lists/linked_list.c +++ b/libretro-common/lists/linked_list.c @@ -51,7 +51,7 @@ linked_list_t *linked_list_new(void) { linked_list_t *list; - list = (linked_list_t *)calloc(sizeof(linked_list_t), 1); + list = (linked_list_t *)calloc(1, sizeof(linked_list_t)); return list; }