From ec27ea55f38d78fd97c80f8554870693a96be332 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Mon, 14 Jan 2008 17:53:35 +0000 Subject: begin disk assisted queue memory queue modes (not fully implemented yet) --- obj-types.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'obj-types.h') 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) \ { \ -- cgit v1.2.3