| ... | @@ -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; |
| 33 | | 33 | |
| 34 | return next_node; | 34 | return next_node; |