mirror of https://github.com/ArduPilot/ardupilot
AP_HAL_SITL: fix ‘heap’ shadowing
This commit is contained in:
parent
47141562c0
commit
a700b647db
|
@ -79,13 +79,13 @@ void *HALSITL::Util::allocate_heap_memory(size_t size)
|
|||
return (void *)new_heap;
|
||||
}
|
||||
|
||||
void *HALSITL::Util::heap_realloc(void *heap, void *ptr, size_t new_size)
|
||||
void *HALSITL::Util::heap_realloc(void *heap_ptr, void *ptr, size_t new_size)
|
||||
{
|
||||
if (heap == nullptr) {
|
||||
if (heap_ptr == nullptr) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
struct heap *heapp = (struct heap*)heap;
|
||||
struct heap *heapp = (struct heap*)heap_ptr;
|
||||
|
||||
// extract appropriate headers
|
||||
size_t old_size = 0;
|
||||
|
|
Loading…
Reference in New Issue