Fix signed/unsigned comparison in gos_linux.c

This commit is contained in:
Joel Bodenmann 2021-09-21 18:07:54 +02:00
parent 05b547bbbb
commit aa9e187581

View File

@ -169,7 +169,7 @@ gThreadreturn gfxThreadWait(gThread thread) {
res = 0; res = 0;
sem_getvalue(&pSem->sem, &res); sem_getvalue(&pSem->sem, &res);
if (res < pSem->max) if (res < (int)pSem->max)
sem_post(&pSem->sem); sem_post(&pSem->sem);
} }
#else #else