projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
gallium,utils: Fix trivial sign compare warnings
[mesa.git]
/
src
/
gallium
/
auxiliary
/
util
/
u_cpu_detect.c
diff --git
a/src/gallium/auxiliary/util/u_cpu_detect.c
b/src/gallium/auxiliary/util/u_cpu_detect.c
index 10b090216d7b2c8f69722d5613beb133f8db103b..aa3c30af6e3d868fa1992135d2b8907716e4f1c6 100644
(file)
--- a/
src/gallium/auxiliary/util/u_cpu_detect.c
+++ b/
src/gallium/auxiliary/util/u_cpu_detect.c
@@
-313,7
+313,7
@@
util_cpu_detect(void)
}
#elif defined(PIPE_OS_UNIX) && defined(_SC_NPROCESSORS_ONLN)
util_cpu_caps.nr_cpus = sysconf(_SC_NPROCESSORS_ONLN);
- if (util_cpu_caps.nr_cpus ==
-1
)
+ if (util_cpu_caps.nr_cpus ==
~0u
)
util_cpu_caps.nr_cpus = 1;
#elif defined(PIPE_OS_BSD)
{