summaryrefslogtreecommitdiffstats
path: root/cpukit/score/inline/rtems/score/heap.inl
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-05-05 19:37:28 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-05-05 19:37:28 +0000
commitf16a6fe73a77b1ebdc962f0639289b8a7e05ae6e (patch)
tree0509b359198624a4640c0831667674640ff3fffa /cpukit/score/inline/rtems/score/heap.inl
parent2009-05-05 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-f16a6fe73a77b1ebdc962f0639289b8a7e05ae6e.tar.bz2
2009-05-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* 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.
Diffstat (limited to '')
-rw-r--r--cpukit/score/inline/rtems/score/heap.inl4
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 );
}
/**@}*/