aboutsummaryrefslogtreecommitdiff
path: root/brillo/flag_helper.h
diff options
context:
space:
mode:
Diffstat (limited to 'brillo/flag_helper.h')
-rw-r--r--brillo/flag_helper.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/brillo/flag_helper.h b/brillo/flag_helper.h
index 47f7018..810a00c 100644
--- a/brillo/flag_helper.h
+++ b/brillo/flag_helper.h
@@ -204,7 +204,7 @@ class BRILLO_EXPORT StringFlag final : public Flag {
// for defining bool flags
#define DEFINE_bool(name, value, help) \
bool FLAGS_##name = value; \
- bool FLAGS_no##name = !value; \
+ bool FLAGS_no##name = !(value); \
brillo::FlagHelper::GetInstance()->AddFlag( \
std::unique_ptr<brillo::Flag>(new brillo::BoolFlag( \
#name, &FLAGS_##name, &FLAGS_no##name, #value, help, true))); \