From 553231f65e4e8d20a6f665ba86e3785a7243595f Mon Sep 17 00:00:00 2001 From: Hans Boehm Date: Tue, 19 Aug 2014 13:42:54 -0700 Subject: [PATCH] Fix CAS argument type. Gcc apparently doesn't check; clang does. Bug:17067219 Change-Id: I184084a5063131dbc857c63f97e70e78a05e1a76 (cherry picked from commit 1ddaadb59883df5ca821b4b08fdd41a1720a3b6f) --- libs/binder/Binder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/binder/Binder.cpp b/libs/binder/Binder.cpp index d9d4971db..2554351cc 100644 --- a/libs/binder/Binder.cpp +++ b/libs/binder/Binder.cpp @@ -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(e),