| author | |
| committer | |
| log | 27e8d05ee8aa9e26b3fb925f841b228e082b45c2 |
| tree | ab9cf143d328977f6dcc952dda705fbb820d9706 |
| parent | d2dda0737b72c9ce5c156050b2b8eb62b50bbf62 |
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 | 28 | pub fn next(self: *const DevicePath) ?*const DevicePath { |
| 29 | 29 | const bytes: [*]const u8 = @ptrCast(self); |
| 30 | 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 | 32 | return null; |
| 33 | 33 | |
| 34 | 34 | return next_node; |