mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fixed two (2) typos in Bytearray:move method implementation
This commit is contained in:
parent
457fc57349
commit
e203b5ef4c
1 changed files with 1 additions and 1 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue