* bsd_mutex.cc (win_priority): Actually calculate p from priority.

This commit is contained in:
Corinna Vinschen 2004-07-19 13:12:00 +00:00
parent cd341e5613
commit f8e58afb11
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2004-07-19 Corinna Vinschen <corinna@vinschen.de>
* bsd_mutex.cc (win_priority): Actually calculate p from priority.
2004-06-03 Corinna Vinschen <corinna@vinschen.de>
* shm.cc (shmget): Explicitely set td_retval[0] to -1 on error.

View File

@ -109,7 +109,7 @@ msleep_event_name (void *ident, char *name)
static int
win_priority (int priority)
{
int p = (int)((p) & PRIO_MASK) - PZERO;
int p = (int)((priority) & PRIO_MASK) - PZERO;
/* Generating a valid priority value is a bit tricky. The only valid
values on 9x and NT4 are -15, -2, -1, 0, 1, 2, 15. */
switch (p)