From 295c65474044f57917ce6df4fa71c89f9c1e4803 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Fri, 16 Sep 2016 21:55:45 +0000 Subject: [PATCH] Fix TEST_SYNC_KEY macro to always return 1 or 0. git-svn-id: https://svn.eduke32.com/eduke32@5870 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/macros.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polymer/eduke32/source/macros.h b/polymer/eduke32/source/macros.h index baa31b1a5..1f1ddb822 100644 --- a/polymer/eduke32/source/macros.h +++ b/polymer/eduke32/source/macros.h @@ -48,7 +48,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. #define BIT(shift) (1u<<(shift)) -#define TEST_SYNC_KEY(bits, sync_num) TEST(bits, BIT(sync_num)) +#define TEST_SYNC_KEY(bits, sync_num) (!!TEST((bits), BIT(sync_num))) #define AFLAMABLE(X) (X==BOX||X==TREE1||X==TREE2||X==TIRE||X==CONE) #define rnd(X) ((krand()>>8)>=(255-(X)))