summaryrefslogtreecommitdiffstats
path: root/AffinityPanel.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2021-09-02 22:32:50 +0200
committerBenBE <BenBE@geshi.org>2021-09-04 09:48:53 +0200
commitd0f5b61aa59184825f8b8b60d9a7e169405441a3 (patch)
tree70ab5ec32036f0adbdf8290a4a6a50b078780807 /AffinityPanel.c
parent284f8c5e0b57bce3f4b595c11142672ea0b76989 (diff)
hwloc: use int in hwloc_bitmap_foreach_begin loop
Affinity.c:67:10: runtime error: implicit conversion from type 'int' of value -1 (32-bit, signed) to type 'unsigned int' changed the value to 4294967295 (32-bit, unsigned)
Diffstat (limited to 'AffinityPanel.c')
-rw-r--r--AffinityPanel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/AffinityPanel.c b/AffinityPanel.c
index dbce5ca0..d50d5542 100644
--- a/AffinityPanel.c
+++ b/AffinityPanel.c
@@ -425,9 +425,9 @@ Affinity* AffinityPanel_getAffinity(Panel* super, ProcessList* pl) {
Affinity* affinity = Affinity_new(pl);
#ifdef HAVE_LIBHWLOC
- unsigned int i;
+ int i;
hwloc_bitmap_foreach_begin(i, this->workCpuset)
- Affinity_add(affinity, i);
+ Affinity_add(affinity, (unsigned)i);
hwloc_bitmap_foreach_end();
#else
for (int i = 0; i < Vector_size(this->cpuids); i++) {

© 2014-2024 Faster IT GmbH | imprint | privacy policy