Fix clang linux compilation

dev
Sean Purcell 2017-04-13 14:06:40 -07:00
parent 3b6207d4bd
commit 9227aae001
1 changed files with 1 additions and 1 deletions

View File

@ -601,7 +601,7 @@ UTIL_STATIC int UTIL_countPhysicalCores(void)
if (numPhysicalCores != 0) return numPhysicalCores; if (numPhysicalCores != 0) return numPhysicalCores;
numPhysicalCores = sysconf(_SC_NPROCESSORS_ONLN); numPhysicalCores = (int)sysconf(_SC_NPROCESSORS_ONLN);
if (numPhysicalCores == -1) { if (numPhysicalCores == -1) {
/* value not queryable, fall back on 1 */ /* value not queryable, fall back on 1 */
return numPhysicalCores = 1; return numPhysicalCores = 1;