diff mbox series

[14/17] rt-tests: rt-numa: Fix comparison of different signedness

Message ID 20231006184011.26699-14-jkacur@redhat.com
State New
Headers show
Series [01/17] rt-tests: cyclictest: Remove warnings due different signedness in comparison | expand

Commit Message

John Kacur Oct. 6, 2023, 6:40 p.m. UTC
Fix comparison of integer expressions of different signedness

Signed-off-by: John Kacur <jkacur@redhat.com>
---
 src/lib/rt-numa.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/src/lib/rt-numa.c b/src/lib/rt-numa.c
index 1b09cff8d948..548365f50cc4 100644
--- a/src/lib/rt-numa.c
+++ b/src/lib/rt-numa.c
@@ -52,7 +52,7 @@  int get_available_cpus(struct bitmask *cpumask)
 
 int cpu_for_thread_sp(int thread_num, int max_cpus, struct bitmask *cpumask)
 {
-	unsigned int m, cpu, i, num_cpus;
+	int m, cpu, i, num_cpus;
 
 	num_cpus = numa_bitmask_weight(cpumask);