From 5afe6c0236d8be57bc9bf1cba7fb5ab5e832a75e Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 3 Sep 2000 16:55:13 +0000 Subject: Update. 2000-09-03 Ulrich Drepper * spinlock.h (testandset): Add cast to avoid warning. Patch by Franz Sirl . --- linuxthreads/ChangeLog | 5 +++++ linuxthreads/spinlock.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'linuxthreads') diff --git a/linuxthreads/ChangeLog b/linuxthreads/ChangeLog index aac2e47..54ee1cf 100644 --- a/linuxthreads/ChangeLog +++ b/linuxthreads/ChangeLog @@ -1,3 +1,8 @@ +2000-09-03 Ulrich Drepper + + * spinlock.h (testandset): Add cast to avoid warning. + Patch by Franz Sirl . + 2000-09-02 Andreas Jaeger * sysdeps/pthread/timer_routines.c: Include stdlib.h for abort diff --git a/linuxthreads/spinlock.h b/linuxthreads/spinlock.h index f88e8f3..b3d0231 100644 --- a/linuxthreads/spinlock.h +++ b/linuxthreads/spinlock.h @@ -49,7 +49,7 @@ static inline int compare_and_swap(long * ptr, long oldval, long newval, #elif defined(HAS_COMPARE_AND_SWAP) #ifdef IMPLEMENT_TAS_WITH_CAS -#define testandset(p) !__compare_and_swap(p, 0, 1) +#define testandset(p) !__compare_and_swap((long int *) p, 0, 1) #endif #ifdef HAS_COMPARE_AND_SWAP_WITH_RELEASE_SEMANTICS -- cgit v1.1