summaryrefslogtreecommitdiffstats
path: root/apps/gui/option_select.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui/option_select.c')
-rw-r--r--apps/gui/option_select.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/gui/option_select.c b/apps/gui/option_select.c
index af281dc07c..afc11fc4ee 100644
--- a/apps/gui/option_select.c
+++ b/apps/gui/option_select.c
@@ -36,8 +36,8 @@
#include "menu.h"
#include "quickscreen.h"
-/* HASFLAG compares value to a (SINGLE) flag returns true if set, false otherwise */
-#define HASFLAG(settings_list, flag) ((settings_list->flags & flag) == flag)
+/* HASFLAG compares value to flags returns true if set, false otherwise */
+#define HASFLAG(settings_list, flag) ((settings_list->flags & (flag)) == (flag))
static int selection_to_val(const struct settings_list *setting, int selection);
int option_value_as_int(const struct settings_list *setting)