mirror of
https://github.com/ziglang/zig.git
synced 2024-11-24 21:30:14 +00:00
remove unnecessary cast
This commit is contained in:
parent
d22049a987
commit
5ce17ecfa7
@ -1141,8 +1141,7 @@ const LinuxThreadImpl = struct {
|
||||
|
||||
fn getCpuCount() !usize {
|
||||
const cpu_set = try posix.sched_getaffinity(0);
|
||||
// TODO: should not need this usize cast
|
||||
return @as(usize, posix.CPU_COUNT(cpu_set));
|
||||
return posix.CPU_COUNT(cpu_set);
|
||||
}
|
||||
|
||||
thread: *ThreadCompletion,
|
||||
|
Loading…
Reference in New Issue
Block a user