summaryrefslogtreecommitdiffstats
path: root/libs/binder/Binder.cpp
diff options
context:
space:
mode:
authorHans Boehm <hboehm@google.com>2014-08-19 13:42:54 -0700
committerHans Boehm <hboehm@google.com>2014-08-19 13:42:54 -0700
commit1ddaadb59883df5ca821b4b08fdd41a1720a3b6f (patch)
tree7f712f5209c790f6ccc86c16e3790058e9ae5cd4 /libs/binder/Binder.cpp
parenta0187a9c83cb042b4cb92dac59214247bb7affcf (diff)
downloadframeworks_native-1ddaadb59883df5ca821b4b08fdd41a1720a3b6f.zip
frameworks_native-1ddaadb59883df5ca821b4b08fdd41a1720a3b6f.tar.gz
frameworks_native-1ddaadb59883df5ca821b4b08fdd41a1720a3b6f.tar.bz2
Fix CAS argument type.
Gcc apparently doesn't check; clang does. Bug:17067219 Change-Id: I184084a5063131dbc857c63f97e70e78a05e1a76
Diffstat (limited to 'libs/binder/Binder.cpp')
-rw-r--r--libs/binder/Binder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/binder/Binder.cpp b/libs/binder/Binder.cpp
index d9d4971..2554351 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<uintptr_t>(e),