[kaffe] CVS kaffe (robilad): Cleaned up cast warnings in jni.c

Kaffe CVS cvs-commits at kaffe.org
Fri Nov 5 17:35:54 PST 2004


PatchSet 5402 
Date: 2004/11/06 01:31:37
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
Cleaned up cast warnings in jni.c

2004-11-06  Eric Anholt  <eta at lclark.edu>

        * kaffe/kaffevm/jni/jni.c:
        Clean up cast warnings.

Members: 
	ChangeLog:1.2951->1.2952 
	kaffe/kaffevm/jni/jni.c:1.8->1.9 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.2951 kaffe/ChangeLog:1.2952
--- kaffe/ChangeLog:1.2951	Sat Nov  6 00:44:37 2004
+++ kaffe/ChangeLog	Sat Nov  6 01:31:37 2004
@@ -1,5 +1,10 @@
 2004-11-06  Eric Anholt  <eta at lclark.edu>
 
+	* kaffe/kaffevm/jni/jni.c:
+	Clean up cast warnings.
+
+2004-11-06  Eric Anholt  <eta at lclark.edu>
+
 	* libraries/clib/native/AccessController.c:
 	Warnings fixes which probably matter on 64-bit (assuming that a
 	non-prototyped function returns int, instead of pointer).
Index: kaffe/kaffe/kaffevm/jni/jni.c
diff -u kaffe/kaffe/kaffevm/jni/jni.c:1.8 kaffe/kaffe/kaffevm/jni/jni.c:1.9
--- kaffe/kaffe/kaffevm/jni/jni.c:1.8	Sun Oct 31 14:35:37 2004
+++ kaffe/kaffe/kaffevm/jni/jni.c	Sat Nov  6 01:31:40 2004
@@ -486,7 +486,7 @@
 	}
 	END_EXCEPTION_HANDLING();
 	
-	return (meth);
+	return ((jmethodID)meth);
 }
 
 
@@ -505,7 +505,7 @@
 		postError(env, &info);
 	}
 	END_EXCEPTION_HANDLING();
-	return (fld);
+	return ((jfieldID)fld);
 }
 
 static jmethodID
@@ -525,7 +525,7 @@
 	}
 	END_EXCEPTION_HANDLING();
 
-	return (meth);
+	return ((jmethodID)meth);
 }
 
 static jfieldID
@@ -544,7 +544,7 @@
 	}
 	END_EXCEPTION_HANDLING();
 
-	return (fld);
+	return ((jfieldID)fld);
 }
 
 static jsize




More information about the kaffe mailing list