From cf5b08de8ab515aa8fc9e0577e013297b8ce2a0e Mon Sep 17 00:00:00 2001 From: Niklas Fiekas Date: Sat, 25 May 2024 10:04:59 +0200 Subject: [PATCH] sw_engine: fix -Wcalloc-transposed-args --- src/renderer/sw_engine/tvgSwMemPool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/sw_engine/tvgSwMemPool.cpp b/src/renderer/sw_engine/tvgSwMemPool.cpp index b85d9438..3431f034 100644 --- a/src/renderer/sw_engine/tvgSwMemPool.cpp +++ b/src/renderer/sw_engine/tvgSwMemPool.cpp @@ -81,7 +81,7 @@ SwMpool* mpoolInit(uint32_t threads) { auto allocSize = threads + 1; - auto mpool = static_cast(calloc(sizeof(SwMpool), 1)); + auto mpool = static_cast(calloc(1, sizeof(SwMpool))); mpool->outline = static_cast(calloc(1, sizeof(SwOutline) * allocSize)); mpool->strokeOutline = static_cast(calloc(1, sizeof(SwOutline) * allocSize)); mpool->dashOutline = static_cast(calloc(1, sizeof(SwOutline) * allocSize));