From d05cdfd357ef3737af8e10223c90d87db52d9690 Mon Sep 17 00:00:00 2001 From: Sears Russell Date: Tue, 13 Mar 2007 08:53:54 +0000 Subject: [PATCH] Fixes compilation warning. --- src/lladd/bufferManager/bufferHash.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lladd/bufferManager/bufferHash.c b/src/lladd/bufferManager/bufferHash.c index cfe112d..63b6a9d 100644 --- a/src/lladd/bufferManager/bufferHash.c +++ b/src/lladd/bufferManager/bufferHash.c @@ -47,8 +47,8 @@ static void pageSetNode(void * page, node_t * n, void * ignore) { } -#define pagePendingPtr(p) ((intptr_t*)(&((p)->next))) -#define pagePinCountPtr(p) ((intptr_t*)(&((p)->queue))) +#define pagePendingPtr(p) ((struct Page_s **)(&((p)->next))) +#define pagePinCountPtr(p) ((int*)(&((p)->queue))) #ifdef LONG_RUN @@ -214,7 +214,7 @@ static Page * bhLoadPageImpl(int xid, const int pageid) { ret = getFreePage(); // Add a pending entry to cachedPages to block like-minded threads and writeback - (*pagePendingPtr(ret)) = 1; + (*pagePendingPtr(ret)) = (void*)1; check = LH_ENTRY(insert)(cachedPages,&pageid,sizeof(int), ret); assert(!check);