From: cuz Date: Thu, 12 Dec 2002 23:19:33 +0000 (+0000) Subject: Fixed a macro problem X-Git-Tag: V2.12.0~1915 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1ec291fa4e32a7cf12869ddccd52635a43f5a590;p=cc65 Fixed a macro problem git-svn-id: svn://svn.cc65.org/cc65/trunk@1744 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/cc65/codeseg.h b/src/cc65/codeseg.h index 3ddf24ada..aa923e3de 100644 --- a/src/cc65/codeseg.h +++ b/src/cc65/codeseg.h @@ -161,7 +161,7 @@ INLINE struct CodeEntry* CS_GetEntry (CodeSeg* S, unsigned Index) return CollAt (&S->Entries, Index); } #else -# define CS_GetEntry(S, Index) CollAt(&(S)->Entries, (Index)) +# define CS_GetEntry(S, Index) ((struct CodeEntry*) CollAt(&(S)->Entries, (Index))) #endif struct CodeEntry* CS_GetPrevEntry (CodeSeg* S, unsigned Index);