mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 02:00:12 +01:00
util: fix sign comparison
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Ryan Neph <ryanneph@google.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13074>
This commit is contained in:
parent
709e187003
commit
7c22ece8e4
1 changed files with 1 additions and 2 deletions
|
|
@ -497,8 +497,7 @@ get_cpu_topology(void)
|
|||
*
|
||||
* Loop over all possible CPUs even though some may be offline.
|
||||
*/
|
||||
for (unsigned i = 0; i < util_cpu_caps.max_cpus && i < UTIL_MAX_CPUS;
|
||||
i++) {
|
||||
for (int16_t i = 0; i < util_cpu_caps.max_cpus && i < UTIL_MAX_CPUS; i++) {
|
||||
uint32_t cpu_bit = 1u << (i % 32);
|
||||
|
||||
mask[i / 32] = cpu_bit;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue