From 629b7fcfe54eb918ea53f063da2d1979da7ea1c4 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 14 Nov 2009 11:57:55 +0000 Subject: [PATCH] (svn r18070) -Fix: some possible unwanted side effects if using some sorts of boolean expressions in DEBUG --- src/debug.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/debug.h b/src/debug.h index 0355bf5920..b17597d801 100644 --- a/src/debug.h +++ b/src/debug.h @@ -29,7 +29,7 @@ #ifdef NO_DEBUG_MESSAGES #define DEBUG(name, level, ...) { } #else /* NO_DEBUG_MESSAGES */ - #define DEBUG(name, level, ...) if (level == 0 || _debug_ ## name ## _level >= level) debug(#name, __VA_ARGS__) + #define DEBUG(name, level, ...) if ((level) == 0 || _debug_ ## name ## _level >= (level)) debug(#name, __VA_ARGS__) extern int _debug_ai_level; extern int _debug_driver_level;