Use SIZEOF_VOID_P instead of POINTERSIZE.
authortwisti <none@none>
Wed, 8 Jun 2005 10:59:04 +0000 (10:59 +0000)
committertwisti <none@none>
Wed, 8 Jun 2005 10:59:04 +0000 (10:59 +0000)
src/vm/jit/codegen.inc
src/vm/jit/codegen.inc.h

index c6249090a23f671a872f61db7e24bcb7ae560020..932f419f3c0f7b414680c065a5c8ae5537e74d95 100644 (file)
@@ -47,7 +47,7 @@
    memory. All functions writing values into the data area return the offset
    relative the begin of the code area (start of procedure).   
 
-   $Id: codegen.inc 2507 2005-05-23 08:34:04Z twisti $
+   $Id: codegen.inc 2589 2005-06-08 10:59:04Z twisti $
 
 */
 
@@ -801,7 +801,8 @@ static void codegen_finish(methodinfo *m, codegendata *cd, s4 mcodelen)
 
                dr = cd->datareferences;
                while (dr != NULL) {
-                       *((functionptr *) ((ptrint) epoint + (ptrint) dr->pos - POINTERSIZE)) = epoint;
+                       *((functionptr *) ((ptrint) epoint + (ptrint) dr->pos -
+                                                          SIZEOF_VOID_P)) = epoint;
                        dr = dr->next;
                }
        }
index 98a10a66b9ef87cc4ad271270535b8086772f621..cf9522112da98c50856cb72a6cd18b5a6610f136 100644 (file)
@@ -28,7 +28,7 @@
 
    Changes:
 
-   $Id: codegen.inc.h 2318 2005-04-21 19:44:18Z twisti $
+   $Id: codegen.inc.h 2589 2005-06-08 10:59:04Z twisti $
 
 */
 
@@ -60,7 +60,7 @@ typedef struct threadcritnodetemp threadcritnodetemp;
 #define MCODEINITSIZE (1<<15)       /* 32 Kbyte code area initialization size */
 #define DSEGINITSIZE  (1<<12)       /*  4 Kbyte data area initialization size */
 
-#if POINTERSIZE == 8
+#if SIZEOF_VOID_P == 8
 #define dseg_addaddress(cd,value)    dseg_adds8((cd), (s8) (value))
 #else
 #define dseg_addaddress(cd,value)    dseg_adds4((cd), (s4) (value))