From 906dcf5cb3d42618fb4bd6aa14c81a009f7cd596 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Wed, 19 May 2021 19:02:06 +0200 Subject: [PATCH] Solaris: silence signed comparison --- solaris/SolarisProcessList.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solaris/SolarisProcessList.c b/solaris/SolarisProcessList.c index 80965f35..7c94f49f 100644 --- a/solaris/SolarisProcessList.c +++ b/solaris/SolarisProcessList.c @@ -59,7 +59,7 @@ ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* pidMatchList, ui pageSizeKB = pageSize / 1024; pl->cpuCount = sysconf(_SC_NPROCESSORS_ONLN); - if (pl->cpuCount == -1) + if (pl->cpuCount == (unsigned int)-1) CRT_fatalError("Cannot get CPU count by sysconf(_SC_NPROCESSORS_ONLN)"); else if (pl->cpuCount == 1) spl->cpus = xRealloc(spl->cpus, sizeof(CPUData));