From: bdemsky Date: Wed, 20 Aug 2008 01:55:25 +0000 (+0000) Subject: get rid of compiler warning X-Git-Tag: buildscript^6~92 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=92e6ae2a9f2c21bc6a57c4c006ffeea124b1bf32;p=IRC.git get rid of compiler warning --- diff --git a/Robust/src/Runtime/DSTM/interface/dstm.h b/Robust/src/Runtime/DSTM/interface/dstm.h index 95d8d78c..96a4aa35 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) \ - (((void *)x)!=NULL)?(*((unsigned int *)&((struct ___Object___ *) x)->___nextobject___)):0 + ((void*)(((void *) x )!=NULL)?0:(*((unsigned int *)&((struct ___Object___ *) x)->___nextobject___))) #define STATUS(x) \ *((unsigned int *) &(((struct ___Object___ *)((unsigned int) x + sizeof(objheader_t)))->___localcopy___))