fix 'attempt to compare string with number' in audio.input.fetch

This commit is contained in:
MihailRis 2026-02-27 20:34:23 +03:00
parent a32845d083
commit ba2546e096

View file

@ -261,7 +261,8 @@ local function create_FFIview_class(name, typename, typesize)
return function()
i = i + 1
if i <= self.bytes.size / typesize then
return i, self.ptr[i - 1]
local ptr = FFI.cast(ptrtype, self.bytes.bytes)
return i, ptr[i - 1]
end
end
end