Mercurial > hg > xemacs-beta
diff src/ralloc.c @ 163:0132846995bd r20-3b8
Import from CVS: tag r20-3b8
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:43:35 +0200 |
parents | 9f59509498e1 |
children | 3d6bfa290dbd |
line wrap: on
line diff
--- a/src/ralloc.c Mon Aug 13 09:42:28 2007 +0200 +++ b/src/ralloc.c Mon Aug 13 09:43:35 2007 +0200 @@ -674,7 +674,7 @@ static MMAP_HANDLE new_mmap_handle (size_t nsiz) { - MMAP_HANDLE h = UNDERLYING_MALLOC( sizeof( struct alloc_dll ) ); + MMAP_HANDLE h = (MMAP_HANDLE) UNDERLYING_MALLOC( sizeof (struct alloc_dll)); if ( h == 0) return 0; h->size = nsiz; if (mmap_start == 0) @@ -1081,7 +1081,7 @@ case 0: abort(); case 1: - *ptr = UNDERLYING_MALLOC(size); + *ptr = (POINTER) UNDERLYING_MALLOC(size); break; default: mh = new_mmap_handle( size ); @@ -1167,7 +1167,7 @@ } else if (r_alloc_initialized == 1) { - POINTER tmp = realloc(*ptr, sz); + POINTER tmp = (POINTER) realloc(*ptr, sz); if (tmp) *ptr = tmp; return tmp; @@ -1181,7 +1181,7 @@ if ( h == 0 ) /* Was allocated using malloc. */ { - POINTER tmp = UNDERLYING_REALLOC(*ptr, sz); + POINTER tmp = (POINTER) UNDERLYING_REALLOC(*ptr, sz); if (tmp) *ptr = tmp; return tmp;