[kaffe] CVS kaffe (robilad): Small warning fix

Kaffe CVS cvs-commits at kaffe.org
Sun May 1 05:47:49 PDT 2005


PatchSet 6435 
Date: 2005/05/01 12:43:36
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
Small warning fix

2005-05-01  Dalibor Topic  <robilad at kaffe.org>

* kaffe/kaffevm/jit3/machine.c (finishInsnSequence): Fixed
cast warning with jch->pool.

Members: 
	ChangeLog:1.3963->1.3964 
	kaffe/kaffevm/jit3/machine.c:1.73->1.74 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.3963 kaffe/ChangeLog:1.3964
--- kaffe/ChangeLog:1.3963	Fri Apr 29 17:44:29 2005
+++ kaffe/ChangeLog	Sun May  1 12:43:36 2005
@@ -1,3 +1,8 @@
+2005-05-01  Dalibor Topic  <robilad at kaffe.org>
+
+	* kaffe/kaffevm/jit3/machine.c (finishInsnSequence): Fixed
+	cast warning with jch->pool.
+
 2005-04-29  Dalibor Topic  <robilad at kaffe.org>
 
 	* configure.ac: Check if second parameter of scalb is an int.
Index: kaffe/kaffe/kaffevm/jit3/machine.c
diff -u kaffe/kaffe/kaffevm/jit3/machine.c:1.73 kaffe/kaffe/kaffevm/jit3/machine.c:1.74
--- kaffe/kaffe/kaffevm/jit3/machine.c:1.73	Sat Apr 23 14:30:44 2005
+++ kaffe/kaffe/kaffevm/jit3/machine.c	Sun May  1 12:43:40 2005
@@ -505,7 +505,7 @@
 	jch = (jitCodeHeader *)methblock;
 	jch->pool = (void *)(jch + 1);
 	jch->pool = (void *) ( ((unsigned long)(jch->pool) + const_align) & ~const_align);
-	jch->code_start = ((char *)jch->pool) + constlen;
+	jch->code_start = ((nativecode *)jch->pool) + constlen;
 	jch->code_len = CODEPC;
 	memcpy(jch->code_start, codeblock, jch->code_len);
 	gc_free(codeblock);




More information about the kaffe mailing list