From 17144a7981b3cf4ebadd85366de92b92ede6ff48 Mon Sep 17 00:00:00 2001 From: yuzu Date: Thu, 15 May 2025 15:06:05 -0500 Subject: [PATCH] fix for 0.15 master and tested --- src/main.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.zig b/src/main.zig index 08ff6e8..0748a5e 100644 --- a/src/main.zig +++ b/src/main.zig @@ -65,7 +65,7 @@ fn zalloc(private: ?*anyopaque, items: c_uint, size: c_uint) callconv(.C) ?*anyo return null; const allocator: *Allocator = @ptrCast(@alignCast(private.?)); - var buf = allocator.allocWithOptions(u8, ZallocHeader.size_of_aligned + (items * size), @alignOf(*ZallocHeader), null) catch return null; + var buf = allocator.allocWithOptions(u8, ZallocHeader.size_of_aligned + (items * size), std.mem.Alignment.of(*ZallocHeader), null) catch return null; const header: *ZallocHeader = @ptrCast(@alignCast(buf.ptr)); header.* = .{ .magic = magic_value,