summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/malloc_statistics_helpers.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libcsupport/src/malloc_statistics_helpers.c')
-rw-r--r--cpukit/libcsupport/src/malloc_statistics_helpers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/libcsupport/src/malloc_statistics_helpers.c b/cpukit/libcsupport/src/malloc_statistics_helpers.c
index 5d02f8b822..e65ab81cc2 100644
--- a/cpukit/libcsupport/src/malloc_statistics_helpers.c
+++ b/cpukit/libcsupport/src/malloc_statistics_helpers.c
@@ -35,7 +35,7 @@ void rtems_malloc_statistics_at_malloc(
void *pointer
)
{
- size_t actual_size = 0;
+ ssize_t actual_size = 0;
uint32_t current_depth;
rtems_malloc_statistics_t *s = &rtems_malloc_statistics;
@@ -59,7 +59,7 @@ void rtems_malloc_statistics_at_free(
void *pointer
)
{
- size_t size;
+ ssize_t size;
if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) {
MSBUMP(lifetime_freed, size);