overhaul pthread cancellation
[musl] / src / thread / pthread_setcancelstate.c
index 23c3885..aa0ddcd 100644 (file)
@@ -4,7 +4,7 @@ int pthread_setcancelstate(int new, int *old)
 {
        struct pthread *self = pthread_self();
        if (old) *old = self->canceldisable;
-       if ((unsigned)new > 1) return EINVAL;
+       if (new > 1U) return EINVAL;
        self->canceldisable = new;
        return 0;
 }