From 7a5280b96b1028617794af8ffbab8df4fbb1d6d5 Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Fri, 13 Jan 2023 02:19:29 +0000 Subject: more fixes --- includes/compiler/PCode.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes/compiler') diff --git a/includes/compiler/PCode.h b/includes/compiler/PCode.h index 97f652d..d914748 100644 --- a/includes/compiler/PCode.h +++ b/includes/compiler/PCode.h @@ -11,8 +11,8 @@ #define FLAG_SET_T(flags) (((flags) & (fIsBranch | fIsCall)) ? (flags) : 0) #define FLAG_SET_F(flags) (((flags) & (fIsBranch | fIsCall)) ? 0 : (flags)) -#define PCODE_FLAG_SET_T(pcode) (((pcode)->flags & (fIsBranch | fIsCall)) ? (pcode)->flags : 0) -#define PCODE_FLAG_SET_F(pcode) (((pcode)->flags & (fIsBranch | fIsCall)) ? 0 : (pcode)->flags) +#define PCODE_FLAG_SET_T(pcode) ((((PCode *) (pcode))->flags & (fIsBranch | fIsCall)) ? ((PCode *) (pcode))->flags : 0) +#define PCODE_FLAG_SET_F(pcode) ((((PCode *) (pcode))->flags & (fIsBranch | fIsCall)) ? 0 : ((PCode *) (pcode))->flags) enum { EffectRead = 1, -- cgit v1.2.3