forked from bartvdbraak/blender
OSX/sculpt/omp: missing initialisation of size_t pcount_len, oddly worked fine without on OSX 10.9, fixes < 10.9
This commit is contained in:
parent
83f2012300
commit
3b68c6304d
@ -112,7 +112,7 @@ int system_physical_thread_count(void); // declaration here for simplification
|
||||
int system_physical_thread_count(void)
|
||||
{
|
||||
int pcount;
|
||||
size_t pcount_len;
|
||||
size_t pcount_len = sizeof(pcount);
|
||||
sysctlbyname("hw.physicalcpu", &pcount, &pcount_len, NULL, 0);
|
||||
return pcount;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user