Skip to content

Commit 6729f2f

Browse files
committed
Fix a simple bug.
Apparently I had not tested this with anything that actually set a flag to 'false'.
1 parent 26c08fb commit 6729f2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/swift/Basic/FlagSet.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class FlagSet {
6060
if (value) {
6161
Bits |= maskFor<Bit>();
6262
} else {
63-
Bits |= ~maskFor<Bit>();
63+
Bits &= ~maskFor<Bit>();
6464
}
6565
}
6666

0 commit comments

Comments
 (0)