diff options
Diffstat (limited to 'obj-types.h')
-rw-r--r-- | obj-types.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/obj-types.h b/obj-types.h index 350bc95b..94651e6e 100644 --- a/obj-types.h +++ b/obj-types.h @@ -99,8 +99,8 @@ typedef struct obj { /* the dummy struct that each derived class can be casted t unsigned int iObjCooCKiE; /* prevent name conflict, thus the strange name */ # define ISOBJ_assert(pObj) \ { \ - assert(pObj != NULL); \ - assert((unsigned) pObj->iObjCooCKiE == (unsigned) 0xBADEFEE); \ + assert((pObj) != NULL); \ + assert((unsigned) ((obj_t*)(pObj))->iObjCooCKiE == (unsigned) 0xBADEFEE); \ } # define ISOBJ_TYPE_assert(pObj, objType) \ { \ |