From 13cbccc016c532ce933d24540d111a5b5943bf88 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 23 Dec 2022 09:50:37 +1100 Subject: [PATCH] AP_HAL: added old_size to heap_realloc --- libraries/AP_HAL/Util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_HAL/Util.h b/libraries/AP_HAL/Util.h index f5e116a593..678b06fc51 100644 --- a/libraries/AP_HAL/Util.h +++ b/libraries/AP_HAL/Util.h @@ -153,7 +153,7 @@ public: #ifdef ENABLE_HEAP // heap functions, note that a heap once alloc'd cannot be dealloc'd virtual void *allocate_heap_memory(size_t size) = 0; - virtual void *heap_realloc(void *heap, void *ptr, size_t new_size) = 0; + virtual void *heap_realloc(void *heap, void *ptr, size_t old_size, size_t new_size) = 0; #if USE_LIBC_REALLOC virtual void *std_realloc(void *ptr, size_t new_size) { return realloc(ptr, new_size); } #else