cast to a char

pull/1997/head
Tesfa Mael 2019-01-25 15:30:09 -08:00
parent 2fa8e8bb94
commit 5c6b42e60d
1 changed files with 2 additions and 2 deletions

View File

@ -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);