From 0e0cbf94092ff15adcb179efbb7a76582ceb188d Mon Sep 17 00:00:00 2001 From: Gabriel Ravier Date: Wed, 15 May 2019 17:46:14 +0200 Subject: [PATCH] Simplify a comment in Flags.cpp Signed-off-by: Gabriel Ravier --- src/Flags.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Flags.cpp b/src/Flags.cpp index 500da014..face9fed 100644 --- a/src/Flags.cpp +++ b/src/Flags.cpp @@ -4,8 +4,8 @@ #include "WindowsWrapper.h" -// Macros for setting, un-setting and getting bits -// Each flag is stored in a bit, so we can use the exact same macros for this (not defining BIT macros for conciseness) +// Macros for setting, un-setting and getting flags +// Each flag is stored in a bit, so we can use the exact same macros we'd use for bits #define SET_FLAG(x, i) ((x)[(i) / 8] |= 1 << (i) % 8) #define UNSET_FLAG(x, i) ((x)[(i) / 8] &= ~(1 << (i) % 8)) #define GET_FLAG(x, i) ((x)[(i) / 8] & (1 << (i) % 8))