Skip to content
Snippets Groups Projects
Commit c9f06a23 authored by deuce's avatar deuce
Browse files

Fix typecast (Thanks Frank!)

parent 4ef41942
Branches
Tags
No related merge requests found
...@@ -244,7 +244,7 @@ xp_sem_setvalue(xp_sem_t *sem, int sval) ...@@ -244,7 +244,7 @@ xp_sem_setvalue(xp_sem_t *sem, int sval)
_SEM_CHECK_VALIDITY(sem); _SEM_CHECK_VALIDITY(sem);
pthread_mutex_lock(&(*sem)->lock); pthread_mutex_lock(&(*sem)->lock);
(int)(*sem)->count=sval; (*sem)->count=(u_int32_t)sval;
if (((*sem)->nwaiters > 0) && sval) { if (((*sem)->nwaiters > 0) && sval) {
/* /*
* We must use pthread_cond_broadcast() rather than * We must use pthread_cond_broadcast() rather than
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment