aboutsummaryrefslogtreecommitdiff
path: root/lib/std/thread.zig
diff options
context:
space:
mode:
Diffstat (limited to 'lib/std/thread.zig')
-rw-r--r--lib/std/thread.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/thread.zig b/lib/std/thread.zig
index fbfb1afd1e..4e15354055 100644
--- a/lib/std/thread.zig
+++ b/lib/std/thread.zig
@@ -344,7 +344,7 @@ pub const Thread = struct {
pub fn cpuCount() CpuCountError!usize {
if (builtin.os == .linux) {
const cpu_set = try os.sched_getaffinity(0);
- return usize(os.CPU_COUNT(cpu_set)); // TODO should not need this usize cast
+ return @as(usize, os.CPU_COUNT(cpu_set)); // TODO should not need this usize cast
}
if (builtin.os == .windows) {
var system_info: windows.SYSTEM_INFO = undefined;