mips compatibility
authorcacao <none@none>
Wed, 18 Nov 1998 22:06:30 +0000 (22:06 +0000)
committercacao <none@none>
Wed, 18 Nov 1998 22:06:30 +0000 (22:06 +0000)
global.h
src/mm/memory.h
src/vm/global.h
toolbox/memory.h

index 0f632b6b5ffe6d09600471bed6e44dec5ec96dee..e914ed4b594505970f379aed74d624548107027b 100644 (file)
--- a/global.h
+++ b/global.h
@@ -12,7 +12,7 @@
        Changes: Mark     Probst  (schani)   EMAIL: cacao@complang.tuwien.ac.at
                         Philipp  Tomsich (phil)     EMAIL: cacao@complang.tuwien.ac.at
 
-       Last Change: $Id: global.h 64 1998-11-11 21:11:55Z phil $
+       Last Change: $Id: global.h 80 1998-11-18 22:06:30Z cacao $
 
 *******************************************************************************/
 
@@ -33,7 +33,6 @@
  */
 #undef JIT_MARKER_SUPPORT        /* phil */
 #undef SIZE_FROM_CLASSINFO
-//#define SIZE_FROM_CLASSINFO
 
 /* standard includes **********************************************************/
 
index c4122f96e8d4883eb441199530774b62dd0b4ce9..d8c44679b782d7d96294cf1f83027966d495a49f 100644 (file)
@@ -16,7 +16,7 @@
 
 #define ALIGN(pos,size)       ( ( ((pos)+(size)-1) / (size))*(size) )
 #define PADDING(pos,size)     ( ALIGN((pos),(size)) - (pos) )
-#define OFFSET(s,el)          ( (int) &( ((s*)0) -> el ) )
+#define OFFSET(s,el)          ( (int) ( (size_t) &( ((s*)0) -> el ) ) )
 
 
 #define NEW(type)             ((type*) mem_alloc ( sizeof(type) ))
index 0f632b6b5ffe6d09600471bed6e44dec5ec96dee..e914ed4b594505970f379aed74d624548107027b 100644 (file)
@@ -12,7 +12,7 @@
        Changes: Mark     Probst  (schani)   EMAIL: cacao@complang.tuwien.ac.at
                         Philipp  Tomsich (phil)     EMAIL: cacao@complang.tuwien.ac.at
 
-       Last Change: $Id: global.h 64 1998-11-11 21:11:55Z phil $
+       Last Change: $Id: global.h 80 1998-11-18 22:06:30Z cacao $
 
 *******************************************************************************/
 
@@ -33,7 +33,6 @@
  */
 #undef JIT_MARKER_SUPPORT        /* phil */
 #undef SIZE_FROM_CLASSINFO
-//#define SIZE_FROM_CLASSINFO
 
 /* standard includes **********************************************************/
 
index c4122f96e8d4883eb441199530774b62dd0b4ce9..d8c44679b782d7d96294cf1f83027966d495a49f 100644 (file)
@@ -16,7 +16,7 @@
 
 #define ALIGN(pos,size)       ( ( ((pos)+(size)-1) / (size))*(size) )
 #define PADDING(pos,size)     ( ALIGN((pos),(size)) - (pos) )
-#define OFFSET(s,el)          ( (int) &( ((s*)0) -> el ) )
+#define OFFSET(s,el)          ( (int) ( (size_t) &( ((s*)0) -> el ) ) )
 
 
 #define NEW(type)             ((type*) mem_alloc ( sizeof(type) ))