Cleanup: replace C-style casts with functional casts for numeric types

This commit is contained in:
2022-09-25 18:33:28 +10:00
parent c7b247a118
commit f68cfd6bb0
310 changed files with 1541 additions and 1542 deletions

View File

@@ -293,7 +293,7 @@ int BLI_system_thread_count()
#ifdef WIN32
SYSTEM_INFO info;
GetSystemInfo(&info);
t = (int)info.dwNumberOfProcessors;
t = int(info.dwNumberOfProcessors);
#else
# ifdef __APPLE__
int mib[2];
@@ -304,7 +304,7 @@ int BLI_system_thread_count()
len = sizeof(t);
sysctl(mib, 2, &t, &len, nullptr, 0);
# else
t = (int)sysconf(_SC_NPROCESSORS_ONLN);
t = int(sysconf(_SC_NPROCESSORS_ONLN));
# endif
#endif
}