From 1e57cb44e783e6b79c6b295d621ec5611e44687b Mon Sep 17 00:00:00 2001 From: jjenista Date: Tue, 2 Nov 2010 21:33:13 +0000 Subject: [PATCH] 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 --- Robust/src/Runtime/mlp_runtime.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.34.1