fixed two (2) typos in Bytearray:move method implementation

This commit is contained in:
RomanDonw 2026-08-04 19:50:55 +10:00
parent 457fc57349
commit e203b5ef4c

View file

@ -198,7 +198,7 @@ local function move(self, fromindex, toindex, size)
error("specified destination byte range is out of array bounds")
end
FFI.C.memmove(self.bytes + self.toindex - 1, self.bytes + self.fromindex - 1, size)
FFI.C.memmove(self.bytes + toindex - 1, self.bytes + fromindex - 1, size)
end
local bytearray_methods = {