From 6a2a3de19c5c466f26e718dbb23649bc0f20fc07 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Tue, 29 Aug 2017 10:14:48 -0700 Subject: [PATCH] SCP: Actually fixed Coverity issue (Dave Bryan) The previous change cleaned up some redundant declarations and missed the desired change. --- scp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scp.h b/scp.h index 208291f8..d2fdbe3a 100644 --- a/scp.h +++ b/scp.h @@ -255,7 +255,7 @@ void sim_debug_bits (uint32 dbits, DEVICE* dptr, BITFIELD* bitdefs, void sim_debug (uint32 dbits, DEVICE* dptr, const char *fmt, ...) GCC_FMT_ATTR(3, 4); #else void _sim_debug (uint32 dbits, DEVICE* dptr, const char *fmt, ...) GCC_FMT_ATTR(3, 4); -#define sim_debug(dbits, dptr, ...) do { if (sim_deb && dptr && ((dptr)->dctrl & dbits)) _sim_debug (dbits, dptr, __VA_ARGS__);} while (0) +#define sim_debug(dbits, dptr, ...) do { if (sim_deb && dptr && ((dptr)->dctrl & (dbits))) _sim_debug (dbits, dptr, __VA_ARGS__);} while (0) #endif void fprint_stopped_gen (FILE *st, t_stat v, REG *pc, DEVICE *dptr); #define SCP_HELP_FLAT (1u << 31) /* Force flat help when prompting is not possible */