PatchSet 7412 
Date: 2006/09/09 11:30:09
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
small warning fix for alpha

2006-09-09  Dalibor Topic  <[EMAIL PROTECTED]>

        * kaffe/kaffevm/classMethod.h (struct Hjava_lang_Class):
        Changed type of impl_index to unsigned int as its used as
        an array index.

        * kaffe/kaffevm/jni/jni-callmethod.c (getMethodFunc):
        Cast implementors to uintptr_t to fix warning on alpha-linux.

Members: 
        ChangeLog:1.4914->1.4915 
        kaffe/kaffevm/classMethod.h:1.93->1.94 
        kaffe/kaffevm/jni/jni-callmethod.c:1.9->1.10 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4914 kaffe/ChangeLog:1.4915
--- kaffe/ChangeLog:1.4914      Sat Sep  9 01:06:12 2006
+++ kaffe/ChangeLog     Sat Sep  9 11:30:09 2006
@@ -1,5 +1,14 @@
 2006-09-09  Dalibor Topic  <[EMAIL PROTECTED]>
 
+       * kaffe/kaffevm/classMethod.h (struct Hjava_lang_Class):
+       Changed type of impl_index to unsigned int as its used as 
+       an array index.
+
+       * kaffe/kaffevm/jni/jni-callmethod.c (getMethodFunc):
+       Cast implementors to uintptr_t to fix warning on alpha-linux.
+
+2006-09-09  Dalibor Topic  <[EMAIL PROTECTED]>
+
        * include/Makefile.am (stamp-h0all, stamp-h1all): Set bootclasspath
        instead of classpath for kaffeh invocations to make sure the VM 
        interface jars are picked up and the right headers are generated.
Index: kaffe/kaffe/kaffevm/classMethod.h
diff -u kaffe/kaffe/kaffevm/classMethod.h:1.93 
kaffe/kaffe/kaffevm/classMethod.h:1.94
--- kaffe/kaffe/kaffevm/classMethod.h:1.93      Wed Aug  9 21:27:10 2006
+++ kaffe/kaffe/kaffevm/classMethod.h   Sat Sep  9 11:30:14 2006
@@ -155,7 +155,7 @@
        unsigned short          total_interface_len;
        /* pointers to all itable2dtable entries of classes implementing this 
interface */
        void***                 implementors;   /* interfaces only */
-        int                    impl_index;    /* index of the class in the 
implementors array. */
+        unsigned int           impl_index;    /* index of the class in the 
implementors array. */
 
        Hjava_lang_ClassLoader* loader;
 
Index: kaffe/kaffe/kaffevm/jni/jni-callmethod.c
diff -u kaffe/kaffe/kaffevm/jni/jni-callmethod.c:1.9 
kaffe/kaffe/kaffevm/jni/jni-callmethod.c:1.10
--- kaffe/kaffe/kaffevm/jni/jni-callmethod.c:1.9        Thu Aug 18 22:31:31 2005
+++ kaffe/kaffe/kaffevm/jni/jni-callmethod.c    Sat Sep  9 11:30:15 2006
@@ -36,7 +36,7 @@
     implementors = meth->class->implementors;
     clazz = OBJECT_CLASS(obj);
 
-    assert (implementors != NULL && clazz->impl_index <= (int)implementors[0]);
+    assert (implementors != NULL && clazz->impl_index <= (uintptr_t) 
implementors[0]);
 
     return implementors[clazz->impl_index][meth->idx + 1];     
   } else {

_______________________________________________
kaffe mailing list
[email protected]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe

Reply via email to