Index: include/utils/SkThreadPool.h |
diff --git a/include/utils/SkThreadPool.h b/include/utils/SkThreadPool.h |
index a75bed8be44f538eeb87d3c21658f2de83290618..56940ab473169fbbb45390937375d95fb9c92466 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 |