From 5c6b42e60d2570a3e5d632035294c33905e8d17c Mon Sep 17 00:00:00 2001 From: Tesfa Mael Date: Fri, 25 Jan 2019 15:30:09 -0800 Subject: [PATCH] cast to a char --- IDE/ECLIPSE/DEOS/deos_malloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IDE/ECLIPSE/DEOS/deos_malloc.c b/IDE/ECLIPSE/DEOS/deos_malloc.c index 4f206a7ee..4d3fda634 100644 --- a/IDE/ECLIPSE/DEOS/deos_malloc.c +++ b/IDE/ECLIPSE/DEOS/deos_malloc.c @@ -52,8 +52,8 @@ void *realloc_deos(void *ptr, size_t size) { if (ptr != NULL && newptr != NULL) { - if ( *((size_t*)ptr - SIZEOF_HEADER) < *((size_t*)newptr - SIZEOF_HEADER)) - size = *((size_t*)ptr - SIZEOF_HEADER); + if ( *((char *)ptr - SIZEOF_HEADER) < *((char *)newptr - SIZEOF_HEADER)) + size = *((char *)ptr - SIZEOF_HEADER); XMEMCPY((char *) newptr, (const char *) ptr, size); free_deos(ptr);