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; }