diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2021-09-02 22:32:50 +0200 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2021-09-04 09:48:53 +0200 |
commit | d0f5b61aa59184825f8b8b60d9a7e169405441a3 (patch) | |
tree | 70ab5ec32036f0adbdf8290a4a6a50b078780807 /Affinity.c | |
parent | 284f8c5e0b57bce3f4b595c11142672ea0b76989 (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 'Affinity.c')
-rw-r--r-- | Affinity.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -63,9 +63,9 @@ Affinity* Affinity_get(const Process* proc, ProcessList* pl) { Affinity_add(affinity, i); } } else { - unsigned int id; - hwloc_bitmap_foreach_begin(id, cpuset); - Affinity_add(affinity, id); + int id; + hwloc_bitmap_foreach_begin(id, cpuset) + Affinity_add(affinity, (unsigned)id); hwloc_bitmap_foreach_end(); } } |