From a11d01568c5e7bc5570fd48fa0703d837c4bcd84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Wed, 17 Feb 2021 17:38:35 +0100 Subject: Use unsigned types for CPU counts and associated variables --- Affinity.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Affinity.h') diff --git a/Affinity.h b/Affinity.h index 980b15b5..d28e848b 100644 --- a/Affinity.h +++ b/Affinity.h @@ -27,16 +27,16 @@ in the source distribution for its full text. typedef struct Affinity_ { ProcessList* pl; - int size; - int used; - int* cpus; + unsigned int size; + unsigned int used; + unsigned int* cpus; } Affinity; Affinity* Affinity_new(ProcessList* pl); void Affinity_delete(Affinity* this); -void Affinity_add(Affinity* this, int id); +void Affinity_add(Affinity* this, unsigned int id); #if defined(HAVE_LIBHWLOC) || defined(HAVE_LINUX_AFFINITY) -- cgit v1.2.3