option_select HASFLAG guard macro expansion with parens

cheap insurance

Change-Id: I8b1fccfda55350a2197cbc261b06a8c8c9dd9c65
This commit is contained in:
William Wilgus 2023-09-18 00:17:06 -04:00
parent e8a17b1282
commit 3c9be11411

View file

@ -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)