Skip to content

Commit 0975235

Browse files
committed
std.os.dl_iterate_phdr: remove u16 error cast
1 parent 7fbbeae commit 0975235

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/std/os.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5511,7 +5511,7 @@ pub fn dl_iterate_phdr(
55115511
}
55125512
}.callbackC, @as(?*anyopaque, @ptrFromInt(@intFromPtr(&context))))) {
55135513
0 => return,
5514-
else => |err| return @as(Error, @errorCast(@errorFromInt(@as(u16, @intCast(err))))), // TODO don't hardcode u16
5514+
else => |err| return @as(Error, @errorCast(@errorFromInt(@as(std.meta.Int(.unsigned, @bitSizeOf(Error)), @intCast(err))))),
55155515
}
55165516
}
55175517

0 commit comments

Comments
 (0)