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

Commit 553231f6 authored by Hans Boehm's avatar Hans Boehm
Browse files

Fix CAS argument type.

Gcc apparently doesn't check; clang does.

Bug:17067219
Change-Id: I184084a5063131dbc857c63f97e70e78a05e1a76
(cherry picked from commit 1ddaadb5)
parent 08ff8021
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -144,7 +144,7 @@ void BBinder::attachObject(

    if (!e) {
        e = new Extras;
        uintptr_t* expected = 0;
        uintptr_t expected = 0;
        if (!atomic_compare_exchange_strong_explicit(
                                        &mExtras, &expected,
                                        reinterpret_cast<uintptr_t>(e),