diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2011-10-24 19:05:31 +0400 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2011-10-24 19:07:19 +0400 |
commit | 9e54c48f94ea6e5965cdb2b0b001adbca880f3b2 (patch) | |
tree | 6c25b2fbc5d37c9b6ab6c7827dbe8f36ec67227c | |
parent | 6e086523511e71df16087710d0ea4344a8c5c6f8 (diff) | |
download | libatomic_ops-9e54c48f94ea6e5965cdb2b0b001adbca880f3b2.tar.gz |
Fix AO_compare_and_swap_full (GCC MIPS, PowerPC) returned value type
* src/atomic_ops/sysdeps/gcc/mips.h (AO_compare_and_swap_full):
Change "result" local variable type from AO_t to int.
* src/atomic_ops/sysdeps/gcc/powerpc.h (AO_compare_and_swap_full):
Likewise.
-rw-r--r-- | src/atomic_ops/sysdeps/gcc/mips.h | 2 | ||||
-rw-r--r-- | src/atomic_ops/sysdeps/gcc/powerpc.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/atomic_ops/sysdeps/gcc/mips.h b/src/atomic_ops/sysdeps/gcc/mips.h index 2e1e979..527a347 100644 --- a/src/atomic_ops/sysdeps/gcc/mips.h +++ b/src/atomic_ops/sysdeps/gcc/mips.h @@ -86,7 +86,7 @@ AO_compare_and_swap_release(volatile AO_t *addr, AO_t old, AO_t new_val) { AO_INLINE int AO_compare_and_swap_full(volatile AO_t *addr, AO_t old, AO_t new_val) { - AO_t result; + int result; AO_nop_full(); result = AO_compare_and_swap(addr, old, new_val); AO_nop_full(); diff --git a/src/atomic_ops/sysdeps/gcc/powerpc.h b/src/atomic_ops/sysdeps/gcc/powerpc.h index 7660cfc..83d7d39 100644 --- a/src/atomic_ops/sysdeps/gcc/powerpc.h +++ b/src/atomic_ops/sysdeps/gcc/powerpc.h @@ -220,7 +220,7 @@ AO_compare_and_swap_release(volatile AO_t *addr, AO_t old, AO_t new_val) { AO_INLINE int AO_compare_and_swap_full(volatile AO_t *addr, AO_t old, AO_t new_val) { - AO_t result; + int result; AO_lwsync(); result = AO_compare_and_swap(addr, old, new_val); AO_lwsync(); |