Removed warning: cast s4 to s8 on 64-bit machines.
authortwisti <none@none>
Fri, 12 Nov 2004 13:25:02 +0000 (13:25 +0000)
committertwisti <none@none>
Fri, 12 Nov 2004 13:25:02 +0000 (13:25 +0000)
exceptions.c
src/vm/exceptions.c

index 65c9a9fbc21a9bad5d0e1d043cc355d51ad6c390..1fea1412c4bd86a0c2bf1535d8a622e06afc98b2 100644 (file)
@@ -26,7 +26,7 @@
 
    Authors: Christian Thalinger
 
-   $Id: exceptions.c 1480 2004-11-11 14:37:01Z twisti $
+   $Id: exceptions.c 1491 2004-11-12 13:25:02Z twisti $
 
 */
 
@@ -525,7 +525,11 @@ java_objectheader *new_arrayindexoutofboundsexception(s4 index)
                return *exceptionptr;
 
        s = (java_lang_String *) asm_calljavafunction(m,
+#if POINTERSIZE == 8
+                                                                                                 (void *) (s8) index,
+#else
                                                                                                  (void *) index,
+#endif
                                                                                                  NULL,
                                                                                                  NULL,
                                                                                                  NULL);
index 65c9a9fbc21a9bad5d0e1d043cc355d51ad6c390..1fea1412c4bd86a0c2bf1535d8a622e06afc98b2 100644 (file)
@@ -26,7 +26,7 @@
 
    Authors: Christian Thalinger
 
-   $Id: exceptions.c 1480 2004-11-11 14:37:01Z twisti $
+   $Id: exceptions.c 1491 2004-11-12 13:25:02Z twisti $
 
 */
 
@@ -525,7 +525,11 @@ java_objectheader *new_arrayindexoutofboundsexception(s4 index)
                return *exceptionptr;
 
        s = (java_lang_String *) asm_calljavafunction(m,
+#if POINTERSIZE == 8
+                                                                                                 (void *) (s8) index,
+#else
                                                                                                  (void *) index,
+#endif
                                                                                                  NULL,
                                                                                                  NULL,
                                                                                                  NULL);