Manual merged #43 Mac OS Compilation fixes

This commit is contained in:
BenDroid 2018-02-21 23:17:11 +01:00
parent 204835a3f3
commit 8fd88a4e11
7 changed files with 10 additions and 7 deletions

View file

@ -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);
}