Finish move to sentinal terminated slices (#203)

This commit is contained in:
Nikolas 2025-03-04 17:50:23 +01:00
parent bc82c6ebd7
commit 94fa7e23b0
Failed to generate hash of commit
2 changed files with 2 additions and 2 deletions

View file

@ -2513,7 +2513,7 @@ pub fn drawTextCodepoints(font: Font, codepoints: []const c_int, position: Vecto
}
/// Load UTF-8 text encoded from codepoints array
pub fn loadUTF8(codepoints: []const c_int) [*:0]u8 {
pub fn loadUTF8(codepoints: []const c_int) [:0]u8 {
return std.mem.span(cdef.LoadUTF8(@as([*c]const c_int, @ptrCast(codepoints)), @as(c_int, @intCast(codepoints.len))));
}