summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-05-04 00:46:50 +0000
committercommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-05-04 00:46:50 +0000
commit408cb61cd625026f204980897f638ed6ba3cf3e8 (patch)
tree1e9281525b6840316aa65adde0fe07cc93c774c2
parenta92579d00463a0002a20a49af68da8260d73600f (diff)
downloadinclude-408cb61cd625026f204980897f638ed6ba3cf3e8.tar.gz
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/include@14559 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r--utils/SkThreadPool.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/SkThreadPool.h b/utils/SkThreadPool.h
index 295b1b4..c99c5c4 100644
--- a/utils/SkThreadPool.h
+++ b/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