shithub: cstory

Download patch

ref: 0e0cbf94092ff15adcb179efbb7a76582ceb188d
parent: 92a2327187f9d0c3f5b2ed6948b0d832c7e2d58e
author: Gabriel Ravier <[email protected]>
date: Wed May 15 13:46:14 EDT 2019

Simplify a comment in Flags.cpp

Signed-off-by: Gabriel Ravier <[email protected]>

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