From: Ulrich Drepper Date: Mon, 22 Mar 2004 19:32:45 +0000 (+0000) Subject: (__pthread_getaffinity_new): Use INT_MAX instead of UINT_MAX. X-Git-Tag: upstream/2.30~18096 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9708780004abee24d2c49fffe670820e36029377;p=external%2Fglibc.git (__pthread_getaffinity_new): Use INT_MAX instead of UINT_MAX. --- diff --git a/nptl/sysdeps/unix/sysv/linux/pthread_getaffinity.c b/nptl/sysdeps/unix/sysv/linux/pthread_getaffinity.c index 8d3f353..89edef6 100644 --- a/nptl/sysdeps/unix/sysv/linux/pthread_getaffinity.c +++ b/nptl/sysdeps/unix/sysv/linux/pthread_getaffinity.c @@ -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);