From fba5a46d92969dd906f22e0a04d3b507b7f42710 Mon Sep 17 00:00:00 2001 From: bdemsky Date: Wed, 20 Aug 2008 00:44:46 +0000 Subject: [PATCH] should fix the bug...surprised that didn't show up earlier... --- Robust/src/Runtime/DSTM/interface/dstm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Robust/src/Runtime/DSTM/interface/dstm.h b/Robust/src/Runtime/DSTM/interface/dstm.h index 7724cf3e..df1b024c 100644 --- a/Robust/src/Runtime/DSTM/interface/dstm.h +++ b/Robust/src/Runtime/DSTM/interface/dstm.h @@ -105,7 +105,7 @@ typedef struct objheader { (*((unsigned int *)&((struct ___Object___ *)((unsigned int) x + sizeof(objheader_t)))->___nextobject___)) #define COMPOID(x) \ - (*((unsigned int *)&((struct ___Object___ *) x)->___nextobject___)) + ((void *x)!=NULL)?(*((unsigned int *)&((struct ___Object___ *) x)->___nextobject___)):0 #define STATUS(x) \ *((unsigned int *) &(((struct ___Object___ *)((unsigned int) x + sizeof(objheader_t)))->___localcopy___)) -- 2.34.1