Merge branch 'main' into update-gfx-pipeline

This commit is contained in:
MihailRis 2025-06-30 21:30:16 +03:00
commit 54655543bb
8 changed files with 68 additions and 11 deletions

View file

@ -179,7 +179,7 @@ local FFIBytearray = {
return bytearray_type(buffer, #n, #n)
elseif t == "table" then
local capacity = math.max(#n, MIN_CAPACITY)
local buffer = malloc(capacity)
local buffer = FFI.cast("unsigned char*", malloc(capacity))
for i=1,#n do
buffer[i - 1] = n[i]
end