From 4d6d975dc02d15c31e071a32b030793b2b1b4529 Mon Sep 17 00:00:00 2001 From: Tarry Singh Date: Thu, 13 Feb 2025 09:48:13 +0000 Subject: [PATCH] Patch aio.zig: update loadBuffersWithPrefix argument type to match the conditional type of loadBuffers init_args. --- zml/aio.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zml/aio.zig b/zml/aio.zig index 82d1858..56fc14e 100644 --- a/zml/aio.zig +++ b/zml/aio.zig @@ -518,7 +518,7 @@ pub fn loadBuffers( /// The `init_args` are used to initialize the non Buffer fields, using `Model.init` function. pub fn loadBuffersWithPrefix( comptime Model: type, - init_args: anytype, + init_args: if (@hasDecl(Model, "init")) stdx.meta.Tail(stdx.meta.FnArgs(Model.init)) else void, buffer_store: BufferStore, allocator: std.mem.Allocator, platform: zml.Platform,