std.os.dl_iterate_phdr: remove u16 error cast

This commit is contained in:
Carter Snook 2023-12-08 08:10:33 -06:00 committed by GitHub
parent 7e4177a4b1
commit d270020114
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5511,7 +5511,7 @@ pub fn dl_iterate_phdr(
} }
}.callbackC, @as(?*anyopaque, @ptrFromInt(@intFromPtr(&context))))) { }.callbackC, @as(?*anyopaque, @ptrFromInt(@intFromPtr(&context))))) {
0 => return, 0 => return,
else => |err| return @as(Error, @errorCast(@errorFromInt(@as(u16, @intCast(err))))), // TODO don't hardcode u16 else => |err| return @as(Error, @errorCast(@errorFromInt(@as(std.meta.Int(.unsigned, @bitSizeOf(anyerror)), @intCast(err))))),
} }
} }