Merge pull request #802 from MihailRis/fix-audio-input-fetch

fix  'attempt to compare string with number' in audio.input.fetch
This commit is contained in:
MihailRis 2026-02-27 21:06:01 +03:00 • committed by GitHub
commit ad758fd718
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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