Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f4d0139a authored by vadimt's avatar vadimt
Browse files

Fix a bug in bitwise logic

For an example of the effect, see the bug.

Bug: 130415177
Change-Id: I59ed0c0c1a486653b3df0c601dd9af2a07e719f3
parent 1f457ae8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ public interface FlagOp {
    int apply(int flags);

    static FlagOp addFlag(int flag) {
        return i -> i + flag;
        return i -> i | flag;
    }

    static FlagOp removeFlag(int flag) {