Manual merged #43 Mac OS Compilation fixes
This commit is contained in:
parent
204835a3f3
commit
8fd88a4e11
7 changed files with 10 additions and 7 deletions
|
@ -59,7 +59,7 @@ void CpuImpl::setAffinity(int id, uint64_t mask)
|
|||
cpu_set_t set;
|
||||
CPU_ZERO(&set);
|
||||
|
||||
for (int i = 0; i < threads(); i++) {
|
||||
for (size_t i = 0; i < threads(); i++) {
|
||||
if (mask & (1UL << i)) {
|
||||
CPU_SET(i, &set);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue