diff options
Diffstat (limited to 'sysdeps/sparc/sparc32')
-rw-r--r-- | sysdeps/sparc/sparc32/sem_post.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sysdeps/sparc/sparc32/sem_post.c b/sysdeps/sparc/sparc32/sem_post.c index 64cd851ffa..c9f85a06f5 100644 --- a/sysdeps/sparc/sparc32/sem_post.c +++ b/sysdeps/sparc/sparc32/sem_post.c @@ -60,19 +60,19 @@ __new_sem_post (sem_t *sem) int private = isem->private; unsigned int v; - __sparc32_atomic_do_lock24(&isem->pad); + __sparc32_atomic_do_lock24 (&isem->pad); v = isem->value; - if ((v << SEM_VALUE_SHIFT) == SEM_VALUE_MAX) + if ((v >> SEM_VALUE_SHIFT) == SEM_VALUE_MAX) { - __sparc32_atomic_do_unlock24(&isem->pad); + __sparc32_atomic_do_unlock24 (&isem->pad); __set_errno (EOVERFLOW); return -1; } isem->value = v + (1 << SEM_VALUE_SHIFT); - __sparc32_atomic_do_unlock24(&isem->pad); + __sparc32_atomic_do_unlock24 (&isem->pad); if ((v & SEM_NWAITERS_MASK) != 0) futex_wake (&isem->value, 1, private); |