Skip to content

Commit

Permalink
Fix TT #1945
Browse files Browse the repository at this point in the history
Triggered by --without-threads
  • Loading branch information
nwellnhof committed Jan 15, 2011
1 parent d808617 commit 2053ac1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/parrot/atomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ typedef struct Parrot_atomic_integer {
# define PARROT_ATOMIC_PTR_CAS(result, a, expect, update) \
do { \
void * orig; \
PARROT_ATOMIC_PTR_GET((a), orig); \
PARROT_ATOMIC_PTR_GET(orig, (a)); \
if ((expect) == (orig)) { \
ATOMIC_SET((a), (update)); \
PARROT_ATOMIC_PTR_SET((a), (update)); \
(result) = 1; \
} \
else { \
Expand All @@ -64,9 +64,9 @@ typedef struct Parrot_atomic_integer {
# define PARROT_ATOMIC_INT_CAS(result, a, expect, update) \
do { \
INTVAL orig; \
PARROT_ATOMIC_PTR_GET((a), (orig)); \
PARROT_ATOMIC_INT_GET(orig, (a)); \
if ((expect) == (orig)) { \
ATOMIC_SET((a), (update)); \
PARROT_ATOMIC_INT_SET((a), (update)); \
(result) = 1; \
} \
else { \
Expand Down

0 comments on commit 2053ac1

Please sign in to comment.