| ... | @@ -1141,8 +1141,7 @@ const LinuxThreadImpl = struct { | ... | @@ -1141,8 +1141,7 @@ const LinuxThreadImpl = struct { |
| 1141 | | 1141 | |
| 1142 | fn getCpuCount() !usize { | 1142 | fn getCpuCount() !usize { |
| 1143 | const cpu_set = try posix.sched_getaffinity(0); | 1143 | const cpu_set = try posix.sched_getaffinity(0); |
| 1144 | // TODO: should not need this usize cast | 1144 | return posix.CPU_COUNT(cpu_set); |
| 1145 | return @as(usize, posix.CPU_COUNT(cpu_set)); | | |
| 1146 | } | 1145 | } |
| 1147 | | 1146 | |
| 1148 | thread: *ThreadCompletion, | 1147 | thread: *ThreadCompletion, |