mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-23 19:30:10 +00:00
(__pthread_getaffinity_new): Use INT_MAX instead of UINT_MAX.
This commit is contained in:
parent
6873f5c706
commit
9708780004
@ -34,7 +34,7 @@ __pthread_getaffinity_new (pthread_t th, size_t cpusetsize, cpu_set_t *cpuset)
|
||||
|
||||
INTERNAL_SYSCALL_DECL (err);
|
||||
int res = INTERNAL_SYSCALL (sched_getaffinity, err, 3, pd->tid,
|
||||
MIN (UINT_MAX, cpusetsize), cpuset);
|
||||
MIN (INT_MAX, cpusetsize), cpuset);
|
||||
if (INTERNAL_SYSCALL_ERROR_P (res, err))
|
||||
return INTERNAL_SYSCALL_ERRNO (res, err);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user