Correct @call

This commit is contained in:
Not-Nik 2023-08-14 00:18:32 +02:00
parent 16fe333220
commit 42dab04fbf
No known key found for this signature in database
GPG Key ID: 08BB71E672DB3BFD
2 changed files with 2 additions and 2 deletions

View File

@ -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 {

View File

@ -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 {