projects
/
model-checker.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c77e685
)
test: insanesync: remove unnecessary casting
author
Brian Norris
<banorris@uci.edu>
Wed, 17 Jul 2013 02:28:35 +0000
(19:28 -0700)
committer
Brian Norris
<banorris@uci.edu>
Wed, 17 Jul 2013 02:28:35 +0000
(19:28 -0700)
test/insanesync.cc
patch
|
blob
|
history
diff --git
a/test/insanesync.cc
b/test/insanesync.cc
index 57c610ef935c1abb6383cda68d83eef31d6f9802..a1e5d04bc7a9fa8332d505a224750ea5068455c2 100644
(file)
--- a/
test/insanesync.cc
+++ b/
test/insanesync.cc
@@
-38,8
+38,8
@@
static void a(void *obj)
static void b(void *obj)
{
r3 = y.fetch_add(1, memory_order_acquire);
-
void *ptr = (void *)
z.load(memory_order_relaxed);
- z2.store(
(intptr_t)
ptr, memory_order_relaxed);
+
intptr_t ptr =
z.load(memory_order_relaxed);
+ z2.store(ptr, memory_order_relaxed);
}
static void c(void *obj)