From 3c543a05e7208e6da460bcfe95a986528b881825 Mon Sep 17 00:00:00 2001 From: brent saner Date: Thu, 7 Nov 2024 03:44:54 -0500 Subject: [PATCH] v1.7.1 FIXED: * bitmask.MaskBit.ClearFlag now works properly. Whoooops, how long was that typo there? --- bitmask/bitmask.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitmask/bitmask.go b/bitmask/bitmask.go index 5d3ac7f..237fae8 100644 --- a/bitmask/bitmask.go +++ b/bitmask/bitmask.go @@ -56,7 +56,7 @@ func (m *MaskBit) AddFlag(flag MaskBit) { // ClearFlag removes MaskBit flag from m. func (m *MaskBit) ClearFlag(flag MaskBit) { - *m &= flag + *m &^= flag return }