commit | 1ddaadb59883df5ca821b4b08fdd41a1720a3b6f | [log] [tgz] |
---|---|---|
author | Hans Boehm <hboehm@google.com> | Tue Aug 19 13:42:54 2014 -0700 |
committer | Hans Boehm <hboehm@google.com> | Tue Aug 19 13:42:54 2014 -0700 |
tree | 7f712f5209c790f6ccc86c16e3790058e9ae5cd4 | |
parent | a0187a9c83cb042b4cb92dac59214247bb7affcf [diff] [blame] |
Fix CAS argument type. Gcc apparently doesn't check; clang does. Bug:17067219 Change-Id: I184084a5063131dbc857c63f97e70e78a05e1a76
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 @@ 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),