Fix CAS argument type.

Gcc apparently doesn't check; clang does.

Bug:17067219
Change-Id: I184084a5063131dbc857c63f97e70e78a05e1a76
(cherry picked from commit 1ddaadb598)
This commit is contained in:
Hans Boehm 2014-08-19 13:42:54 -07:00
parent 08ff802151
commit 553231f65e
1 changed files with 1 additions and 1 deletions

View File

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