summaryrefslogtreecommitdiff
path: root/src/atomic_ops/generalize-small.template
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2012-07-01 12:45:23 +0400
committerIvan Maidanski <ivmai@mail.ru>2012-07-02 11:02:46 +0400
commit2729f87dae22386a6842f1a14fb20732f821ad5a (patch)
tree36b5420cd95cc9a09646b841e7cb3f7d541cf3e9 /src/atomic_ops/generalize-small.template
parent5423c25786c1a1f2dd36ea9ecc5f58975236c85c (diff)
downloadlibatomic_ops-2729f87dae22386a6842f1a14fb20732f821ad5a.tar.gz
Fix generalized AO_char/short_fetch_and_add CTYPE args
(fix missing 'unsigned' for generalized fetch_and_add primitives) * src/atomic_ops/generalize-small.template (AO_XSIZE_fetch_and_add_full, AO_XSIZE_fetch_and_add_acquire, AO_XSIZE_fetch_and_add_release): Fix type of function arguments (or local variables) by adding 'unsigned' to XCTYPE. * src/atomic_ops/generalize-small.h: Regenerate.
Diffstat (limited to 'src/atomic_ops/generalize-small.template')
-rw-r--r--src/atomic_ops/generalize-small.template6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/atomic_ops/generalize-small.template b/src/atomic_ops/generalize-small.template
index 517a8a7..0f63732 100644
--- a/src/atomic_ops/generalize-small.template
+++ b/src/atomic_ops/generalize-small.template
@@ -157,7 +157,7 @@
/* XSIZE_fetch_and_add */
#if defined(AO_HAVE_XSIZE_compare_and_swap_full) \
&& !defined(AO_HAVE_XSIZE_fetch_and_add_full)
- AO_INLINE XCTYPE
+ AO_INLINE unsigned XCTYPE
AO_XSIZE_fetch_and_add_full(volatile unsigned XCTYPE *addr,
unsigned XCTYPE incr)
{
@@ -174,7 +174,7 @@
#if defined(AO_HAVE_XSIZE_compare_and_swap_acquire) \
&& !defined(AO_HAVE_XSIZE_fetch_and_add_acquire)
- AO_INLINE XCTYPE
+ AO_INLINE unsigned XCTYPE
AO_XSIZE_fetch_and_add_acquire(volatile unsigned XCTYPE *addr,
unsigned XCTYPE incr)
{
@@ -191,7 +191,7 @@
#if defined(AO_HAVE_XSIZE_compare_and_swap_release) \
&& !defined(AO_HAVE_XSIZE_fetch_and_add_release)
- AO_INLINE XCTYPE
+ AO_INLINE unsigned XCTYPE
AO_XSIZE_fetch_and_add_release(volatile unsigned XCTYPE *addr,
unsigned XCTYPE incr)
{