Skip to content

Commit

Permalink
Fix bad number of args to cpu count macro.
Browse files Browse the repository at this point in the history
  • Loading branch information
grafikrobot committed Jun 18, 2019
1 parent 79c248c commit a83f94a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/engine/sysinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ namespace

unsigned int sched_affinity_cpu_count()
{
#if defined(CPU_COUNT)
#if defined(CPU_COUNT_S)
::cpu_set_t cpu_set;
if (::sched_getaffinity(0, sizeof(cpu_set_t), &cpu_set) == 0)
{
return CPU_COUNT(sizeof(cpu_set_t), &cpu_set);
return CPU_COUNT_S(sizeof(cpu_set_t), &cpu_set);
}
#endif
return 0;
Expand Down

0 comments on commit a83f94a

Please sign in to comment.