Fix clang linux compilation

This commit is contained in:
Sean Purcell 2017-04-13 14:06:40 -07:00
parent 3b6207d4bd
commit 9227aae001

View File

@ -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;