authorgravatar for jsentity@noreply.codeberg.orgjsentity <jsentity@noreply.codeberg.org> 2026-01-18 21:42:34+01:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-01-18 21:42:34+01:00
log27e8d05ee8aa9e26b3fb925f841b228e082b45c2
treeab9cf143d328977f6dcc952dda705fbb820d9706
parentd2dda0737b72c9ce5c156050b2b8eb62b50bbf62

Fix protocol.DevicePath.next() (#30883)

fix for https://codeberg.org/ziglang/zig/issues/30882 Reviewed-on: https://codeberg.org/ziglang/zig/pulls/30883 Reviewed-by: Andrew Kelley <andrew@ziglang.org> Co-authored-by: jsentity <jsentity@noreply.codeberg.org> Co-committed-by: jsentity <jsentity@noreply.codeberg.org>

1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/os/uefi/protocol/device_path.zig+1-1
...@@ -28,7 +28,7 @@ pub const DevicePath = extern struct {...@@ -28,7 +28,7 @@ pub const DevicePath = extern struct {
28 pub fn next(self: *const DevicePath) ?*const DevicePath {28 pub fn next(self: *const DevicePath) ?*const DevicePath {
29 const bytes: [*]const u8 = @ptrCast(self);29 const bytes: [*]const u8 = @ptrCast(self);
30 const next_node: *const DevicePath = @ptrCast(bytes + self.length);30 const next_node: *const DevicePath = @ptrCast(bytes + self.length);
31 if (next_node.type == .end and @as(uefi.DevicePath.End.Subtype, @enumFromInt(self.subtype)) == .end_entire)31 if (next_node.type == .end and @as(uefi.DevicePath.End.Subtype, @enumFromInt(next_node.subtype)) == .end_entire)
32 return null;32 return null;
3333
34 return next_node;34 return next_node;