diff options
| author | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2015-08-29 16:20:11 +0200 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2015-08-29 16:20:11 +0200 |
| commit | b57363dbf58c275a7684281022db376ed412601b (patch) | |
| tree | b0c3da758db87ee1e4633e1e8c01cd37ae4640d7 | |
| parent | 5879c2a9aa8daf148d6ef7694f5e959c5207f40f (diff) | |
| download | cataract-b57363dbf58c275a7684281022db376ed412601b.tar.xz | |
setup: Fix setup files version check
Logical issue, found by a gcc-5.2.0 warning.
| -rw-r--r-- | src/setup.h | 6 |
1 files 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 |
