[kaffe] CVS kaffe (robilad): Small compiler warning fix for gc-mem.c

Kaffe CVS cvs-commits at kaffe.org
Sat Aug 20 16:04:18 PDT 2005


PatchSet 6856 
Date: 2005/08/20 22:59:41
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
Small compiler warning fix for gc-mem.c

2005-08-21  Dalibor Topic  <robilad at kaffe.org>

        * kaffe/kaffevm/kaffe-gc/gc-mem.c (gc_block_alloc):
        Made min_nb unsigned to fix compiler warning.

Members: 
	ChangeLog:1.4378->1.4379 
	kaffe/kaffevm/kaffe-gc/gc-mem.c:1.32->1.33 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4378 kaffe/ChangeLog:1.4379
--- kaffe/ChangeLog:1.4378	Sat Aug 20 22:33:54 2005
+++ kaffe/ChangeLog	Sat Aug 20 22:59:41 2005
@@ -1,3 +1,8 @@
+2005-08-21  Dalibor Topic  <robilad at kaffe.org>
+
+	* kaffe/kaffevm/kaffe-gc/gc-mem.c (gc_block_alloc): 
+	Made min_nb unsigned to fix compiler warning.
+	
 2005-08-20  Dalibor Topic  <robilad at kaffe.org>
 
 	* kaffe/kaffevm/gc.h: Include config.h and limits.h.
Index: kaffe/kaffe/kaffevm/kaffe-gc/gc-mem.c
diff -u kaffe/kaffe/kaffevm/kaffe-gc/gc-mem.c:1.32 kaffe/kaffe/kaffevm/kaffe-gc/gc-mem.c:1.33
--- kaffe/kaffe/kaffevm/kaffe-gc/gc-mem.c:1.32	Sat Aug 20 20:10:21 2005
+++ kaffe/kaffe/kaffevm/kaffe-gc/gc-mem.c	Sat Aug 20 22:59:43 2005
@@ -1131,7 +1131,7 @@
 	    || heap_addr < gc_heap_base) {
 		char * old_blocks = gc_block_base;
 		int onb = gc_num_blocks;
-		int min_nb;	/* minimum size of array to hold heap_addr */
+		unsigned int min_nb;	/* minimum size of array to hold heap_addr */
 #if defined(KAFFE_STATS)
 		static timespent growtime;
 #endif




More information about the kaffe mailing list