From: jjenista Date: Tue, 2 Nov 2010 21:33:13 +0000 (+0000) Subject: I misunderstood the REntry pointer, its a pointer to an object pointer and it SHOULD... X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1e57cb44e783e6b79c6b295d621ec5611e44687b;p=IRC.git I misunderstood the REntry pointer, its a pointer to an object pointer and it SHOULD be dereferenced before casting it to an int pointer, and then used to grab the object type or OID out of the actual object memory --- diff --git a/Robust/src/Runtime/mlp_runtime.h b/Robust/src/Runtime/mlp_runtime.h index 9e9bc988..2b5415e7 100644 --- a/Robust/src/Runtime/mlp_runtime.h +++ b/Robust/src/Runtime/mlp_runtime.h @@ -61,8 +61,8 @@ // these are useful for interpreting an INTPTR to an // Object at runtime to retrieve the object's type // or object id (OID), 64-bit safe -#define OBJPTRPTR_2_OBJTYPE( opp ) ((int*)(opp))[0] -#define OBJPTRPTR_2_OBJOID( opp ) ((int*)(opp))[1] +#define OBJPTRPTR_2_OBJTYPE( opp ) ((int*)*(opp))[0] +#define OBJPTRPTR_2_OBJOID( opp ) ((int*)*(opp))[1] // forwarding list elements is a linked // structure of arrays, should help task