diff options
author | William Wilgus <wilgus.william@gmail.com> | 2023-09-18 00:17:06 -0400 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2023-09-18 00:17:06 -0400 |
commit | 3c9be11411c4abeefc0cf2233fbd2b421ffebe64 (patch) | |
tree | e7fe97312163485b2d33d906aa2760ec4494e9a2 | |
parent | e8a17b12825031195d52af9b417de3d80ebbef18 (diff) | |
download | rockbox-3c9be11411.tar.gz rockbox-3c9be11411.zip |
option_select HASFLAG guard macro expansion with parens
cheap insurance
Change-Id: I8b1fccfda55350a2197cbc261b06a8c8c9dd9c65
-rw-r--r-- | apps/gui/option_select.c | 4 |
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) |