[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] target/ppc/cpu.h: Put macro parameter in parentheses
From: |
BALATON Zoltan |
Subject: |
[PATCH] target/ppc/cpu.h: Put macro parameter in parentheses |
Date: |
Thu, 30 Jan 2020 03:06:18 +0100 |
Fix PPC_INPUT macro to work with more complex expressions by
protecting its argument with parentheses.
Signed-off-by: BALATON Zoltan <address@hidden>
---
target/ppc/cpu.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/ppc/cpu.h b/target/ppc/cpu.h
index 8ebeaba649..e3a937e163 100644
--- a/target/ppc/cpu.h
+++ b/target/ppc/cpu.h
@@ -180,7 +180,7 @@ enum {
POWERPC_EXCP_TRAP = 0x40,
};
-#define PPC_INPUT(env) (env->bus_model)
+#define PPC_INPUT(env) ((env)->bus_model)
/*****************************************************************************/
typedef struct opc_handler_t opc_handler_t;
--
2.21.1
- [PATCH] target/ppc/cpu.h: Put macro parameter in parentheses,
BALATON Zoltan <=