From 9227aae0013b44fc7628911d735731e01d1f9480 Mon Sep 17 00:00:00 2001 From: Sean Purcell Date: Thu, 13 Apr 2017 14:06:40 -0700 Subject: [PATCH] Fix clang linux compilation --- programs/util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/util.h b/programs/util.h index 63cfa964..a50b5e55 100644 --- a/programs/util.h +++ b/programs/util.h @@ -601,7 +601,7 @@ UTIL_STATIC int UTIL_countPhysicalCores(void) if (numPhysicalCores != 0) return numPhysicalCores; - numPhysicalCores = sysconf(_SC_NPROCESSORS_ONLN); + numPhysicalCores = (int)sysconf(_SC_NPROCESSORS_ONLN); if (numPhysicalCores == -1) { /* value not queryable, fall back on 1 */ return numPhysicalCores = 1;