From 42dab04fbf163ac918d8ad8eff50fb08273a82ac Mon Sep 17 00:00:00 2001 From: Not-Nik Date: Mon, 14 Aug 2023 00:18:32 +0200 Subject: [PATCH] Correct @call --- lib/preludes/raylib-zig-prelude.zig | 2 +- lib/raylib-zig.zig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/preludes/raylib-zig-prelude.zig b/lib/preludes/raylib-zig-prelude.zig index 6722355..ebbe6f6 100755 --- a/lib/preludes/raylib-zig-prelude.zig +++ b/lib/preludes/raylib-zig-prelude.zig @@ -1296,7 +1296,7 @@ pub fn loadCodepoints(text: [:0]const u8) []i32 { } pub fn textFormat(text: [:0]const u8, args: anytype) [:0]const u8 { - return std.mem.span(@call(.{}, cdef.TextFormat, .{@as([*c]const u8, @ptrCast(text))} ++ args)); + return std.mem.span(@call(.auto, cdef.TextFormat, .{@as([*c]const u8, @ptrCast(text))} ++ args)); } pub fn textSplit(text: [:0]const u8, delimiter: u8) [][:0]const u8 { diff --git a/lib/raylib-zig.zig b/lib/raylib-zig.zig index dd8054c..009981f 100644 --- a/lib/raylib-zig.zig +++ b/lib/raylib-zig.zig @@ -1296,7 +1296,7 @@ pub fn loadCodepoints(text: [:0]const u8) []i32 { } pub fn textFormat(text: [:0]const u8, args: anytype) [:0]const u8 { - return std.mem.span(@call(.{}, cdef.TextFormat, .{@as([*c]const u8, @ptrCast(text))} ++ args)); + return std.mem.span(@call(.auto, cdef.TextFormat, .{@as([*c]const u8, @ptrCast(text))} ++ args)); } pub fn textSplit(text: [:0]const u8, delimiter: u8) [][:0]const u8 {