1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-01 10:06:57 +03:00

Also use uint64_t in __new_sem_wait_fast

This commit is contained in:
H.J. Lu
2015-01-23 16:21:07 -08:00
parent 22971c35e2
commit e0da28a1b2
2 changed files with 2 additions and 1 deletions

View File

@ -228,7 +228,7 @@ __new_sem_wait_fast (struct new_sem *sem, int definitive_result)
and the failure path of the CAS. If the weak CAS fails and we need a
definitive result, retry. */
#if __HAVE_64B_ATOMICS
unsigned long d = atomic_load_relaxed (&sem->data);
uint64_t d = atomic_load_relaxed (&sem->data);
do
{
if ((d & SEM_VALUE_MASK) == 0)