From b57363dbf58c275a7684281022db376ed412601b Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Sat, 29 Aug 2015 16:20:11 +0200 Subject: setup: Fix setup files version check Logical issue, found by a gcc-5.2.0 warning. --- src/setup.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/setup.h b/src/setup.h index d34906d..9459043 100644 --- a/src/setup.h +++ b/src/setup.h @@ -134,9 +134,9 @@ struct TGalleryDesign { }; -#define SETUP_IS_LEGACY(s) s->version < SETUP_NATIVE_VERSION -#define SETUP_IS_NATIVE(s) s->version == SETUP_NATIVE_VERSION -#define SETUP_IS_NEWER(s) s->version > SETUP_NATIVE_VERSION +#define SETUP_IS_LEGACY(s) (s->version < SETUP_NATIVE_VERSION) +#define SETUP_IS_NATIVE(s) (s->version == SETUP_NATIVE_VERSION) +#define SETUP_IS_NEWER(s) (s->version > SETUP_NATIVE_VERSION) /* * find_setup_xml: try to find setup.xml in standard paths -- cgit v1.2.3