From f16a6fe73a77b1ebdc962f0639289b8a7e05ae6e Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 5 May 2009 19:37:28 +0000 Subject: 2009-05-05 Joel Sherrill * score/include/rtems/score/heap.h, score/inline/rtems/score/address.inl, score/inline/rtems/score/heap.inl, score/inline/rtems/score/object.inl, score/inline/rtems/score/priority.inl, score/inline/rtems/score/tod.inl: Remove warnings. --- cpukit/score/inline/rtems/score/heap.inl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpukit/score/inline/rtems/score/heap.inl') 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 ); } /**@}*/ -- cgit v1.2.3