diff options
Diffstat (limited to '')
-rw-r--r-- | cpukit/score/inline/rtems/score/heap.inl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/score/inline/rtems/score/heap.inl b/cpukit/score/inline/rtems/score/heap.inl index 09d6e5b0cd..b8bb124423 100644 --- a/cpukit/score/inline/rtems/score/heap.inl +++ b/cpukit/score/inline/rtems/score/heap.inl @@ -376,11 +376,11 @@ RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in ( * @return This method returns the total amount of memory * allocated to the heap. */ -RTEMS_INLINE_ROUTINE uint32_t _Heap_Get_size ( +RTEMS_INLINE_ROUTINE int32_t _Heap_Get_size ( Heap_Control *the_heap ) { - return the_heap->end - the_heap->begin; + return _Addresses_Subtract( the_heap->end, the_heap->begin ); } /**@}*/ |