From 121c16592476754800b00a3b51595f4799944d04 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Thu, 1 Aug 2024 14:45:39 -0400 Subject: Pass length to free register list callback Allows language bindings like rust to free register lists sanely --- callingconvention.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'callingconvention.cpp') diff --git a/callingconvention.cpp b/callingconvention.cpp index 50cf5062..171ef953 100644 --- a/callingconvention.cpp +++ b/callingconvention.cpp @@ -119,7 +119,7 @@ uint32_t* CallingConvention::GetFloatArgumentRegistersCallback(void* ctxt, size_ } -void CallingConvention::FreeRegisterListCallback(void*, uint32_t* regs) +void CallingConvention::FreeRegisterListCallback(void*, uint32_t* regs, size_t) { delete[] regs; } -- cgit v1.3.1