From c6df22ee3936cc000b0dcc39cdda315614378692 Mon Sep 17 00:00:00 2001 From: Gabriel Date: Sat, 22 Feb 2025 22:57:33 +0100 Subject: [PATCH] core: Allow for non-const pointers in findMultibootTags() --- core/src/multiboot.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/multiboot.zig b/core/src/multiboot.zig index 9dff92c..e70964e 100644 --- a/core/src/multiboot.zig +++ b/core/src/multiboot.zig @@ -68,7 +68,7 @@ pub fn findMultibootTag(comptime Type: type, info: MultibootInfo) ?*Type { } /// Find every multiboot tag of the given type. -pub fn findMultibootTags(comptime Type: type, info: MultibootInfo, callback: *const fn (tag: *Type, ctx: *const anyopaque) void, ctx: *const anyopaque) void { +pub fn findMultibootTags(comptime Type: type, info: MultibootInfo, callback: *const fn (tag: *Type, ctx: *anyopaque) void, ctx: *anyopaque) void { const mb_tag: *easyboot.multiboot_info_t = @alignCast(@ptrCast(info)); const mb_size = mb_tag.total_size;