bug fix
authorroot <root>
Wed, 20 Aug 2008 22:52:55 +0000 (22:52 +0000)
committerroot <root>
Wed, 20 Aug 2008 22:52:55 +0000 (22:52 +0000)
Robust/src/Runtime/DSTM/interface/dstm.h

index 96a4aa355be2614563aa4e9348a0ee67117ce23f..fab894a86c6655e2213e1713d89551837578aa2f 100644 (file)
@@ -105,7 +105,7 @@ typedef struct objheader {
   (*((unsigned int *)&((struct ___Object___ *)((unsigned int) x + sizeof(objheader_t)))->___nextobject___))
 
 #define COMPOID(x) \
-  ((void*)(((void *) x )!=NULL)?0:(*((unsigned int *)&((struct ___Object___ *) x)->___nextobject___)))
+  ((void*)(((void *) x )!=NULL)?(*((unsigned int *)&((struct ___Object___ *) x)->___nextobject___))):0
 
 #define STATUS(x) \
   *((unsigned int *) &(((struct ___Object___ *)((unsigned int) x + sizeof(objheader_t)))->___localcopy___))