[kaffe] CVS kaffe (dalibor): Fixed several warnings in kaffe/kaffevm/itypes.c

Kaffe CVS cvs-commits at kaffe.org
Wed Apr 7 15:11:05 PDT 2004


PatchSet 4631 
Date: 2004/04/07 21:30:13
Author: dalibor
Branch: HEAD
Tag: (none) 
Log:
Fixed several warnings in kaffe/kaffevm/itypes.c

2004-04-07  Nektarios K. Papadopoulos <npapadop at inaccessnetworks.com>

        * kaffe/kaffevm/itypes.c:
        Fixed several cast qualifiers, and an unreachable code warning.

Members: 
	ChangeLog:1.2208->1.2209 
	kaffe/kaffevm/itypes.c:1.29->1.30 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.2208 kaffe/ChangeLog:1.2209
--- kaffe/ChangeLog:1.2208	Wed Apr  7 21:11:02 2004
+++ kaffe/ChangeLog	Wed Apr  7 21:30:13 2004
@@ -1,3 +1,8 @@
+2004-04-07  Nektarios K. Papadopoulos <npapadop at inaccessnetworks.com>
+
+	* kaffe/kaffevm/itypes.c:
+	Fixed several cast qualifiers, and an unreachable code warning.
+
 2004-04-07  Dalibor Topic <robilad at kaffe.org>
 
 	* libraries/javalib/java/lang/VMSecurityManager.java:
Index: kaffe/kaffe/kaffevm/itypes.c
diff -u kaffe/kaffe/kaffevm/itypes.c:1.29 kaffe/kaffe/kaffevm/itypes.c:1.30
--- kaffe/kaffe/kaffevm/itypes.c:1.29	Mon Mar  8 21:21:08 2004
+++ kaffe/kaffe/kaffevm/itypes.c	Wed Apr  7 21:30:15 2004
@@ -35,7 +35,7 @@
 
 static
 void
-initPrimClass(Hjava_lang_Class** class, char* name, char sig, int len)
+initPrimClass(Hjava_lang_Class** class, const char* name, char sig, int len)
 {
 	errorInfo info;
 	classEntry* centry;
@@ -175,13 +175,11 @@
 		start = *strp;
 		for (end = start; *end != 0 && *end != ';'; end++)
 			;
-		*strp = end;
-		if (*end == ';') {
-			(*strp)++;
-		} else {
+		if (*end != ';') {
 			postException(einfo, JAVA_LANG(VerifyError));
 			return (NULL);
 		}
+		*strp = end + 1;
 		utf8 = utf8ConstNew(start, end - start);
 		if (!utf8) {
 			postOutOfMemory(einfo);




More information about the kaffe mailing list