From f8a8ae1322e55d37b3b4b0e25d56f72ab2ee5c09 Mon Sep 17 00:00:00 2001 From: "commit-bot@chromium.org" Date: Sun, 4 May 2014 00:46:50 +0000 Subject: [PATCH] eliminate mac xcode 5 only warning on os x 10.9.2 unistd.h defines sysconf as long sysconf(int); R=mtklein@google.com, reed@google.com Author: caryclark@google.com Review URL: https://codereview.chromium.org/261673004 git-svn-id: http://skia.googlecode.com/svn/trunk@14559 2bbb7eff-a529-9590-31e7-b0007b416f81 --- include/utils/SkThreadPool.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/utils/SkThreadPool.h b/include/utils/SkThreadPool.h index 295b1b4f08..c99c5c4188 100644 --- a/include/utils/SkThreadPool.h +++ b/include/utils/SkThreadPool.h @@ -26,7 +26,7 @@ static inline int num_cores() { GetSystemInfo(&sysinfo); return sysinfo.dwNumberOfProcessors; #elif defined(SK_BUILD_FOR_UNIX) || defined(SK_BUILD_FOR_MAC) || defined(SK_BUILD_FOR_ANDROID) - return sysconf(_SC_NPROCESSORS_ONLN); + return (int) sysconf(_SC_NPROCESSORS_ONLN); #else return 1; #endif