diff src/gmalloc.c @ 288:e11d67e05968 r21-0b42

Import from CVS: tag r21-0b42
author cvs
date Mon, 13 Aug 2007 10:35:54 +0200
parents c42ec1d1cded
children 74fd4e045ea6
line wrap: on
line diff
--- a/src/gmalloc.c	Mon Aug 13 10:35:07 2007 +0200
+++ b/src/gmalloc.c	Mon Aug 13 10:35:54 2007 +0200
@@ -500,7 +500,7 @@
       newinfo = (malloc_info *) align (newsize * sizeof (malloc_info));
       if (newinfo == NULL)
 	{
-	  (*__morecore) (-size);
+	  (*__morecore) (-(int)size);
 	  return NULL;
 	}
       memcpy (newinfo, _heapinfo, heapsize * sizeof (malloc_info));
@@ -842,7 +842,7 @@
 	{
 	  __malloc_size_t bytes = blocks * BLOCKSIZE;
 	  _heaplimit -= blocks;
-	  (*__morecore) (-bytes);
+	  (*__morecore) (-(int)bytes);
 	  _heapinfo[_heapinfo[block].free.prev].free.next
 	    = _heapinfo[block].free.next;
 	  _heapinfo[_heapinfo[block].free.next].free.prev