OSDN Git Service
(root)
/
android-x86
/
frameworks-native.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
08ff802
)
Fix CAS argument type.
author
Hans Boehm
<hboehm@google.com>
Tue, 19 Aug 2014 20:42:54 +0000
(13:42 -0700)
committer
Hans Boehm
<hboehm@google.com>
Wed, 3 Sep 2014 06:26:16 +0000
(23:26 -0700)
Gcc apparently doesn't check; clang does.
Bug:
17067219
Change-Id: I184084a5063131dbc857c63f97e70e78a05e1a76
(cherry picked from commit
1ddaadb59883df5ca821b4b08fdd41a1720a3b6f
)
libs/binder/Binder.cpp
patch
|
blob
|
history
diff --git
a/libs/binder/Binder.cpp
b/libs/binder/Binder.cpp
index
d9d4971
..
2554351
100644
(file)
--- 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),