Skip to content

Commit

Permalink
patch
Browse files Browse the repository at this point in the history
  • Loading branch information
imezx committed Mar 24, 2024
1 parent 5b0d4ee commit 5cf44bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Binary file modified Warp.rbxm
Binary file not shown.
5 changes: 3 additions & 2 deletions src/Index/Util/Buffer/Dedicated.luau
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ end
function DedicatedBuffer.alloc(self: any, byte: number)
local size: number = self.size
local b: buffer = self.buffer



while self.point + byte >= size do
size = math.floor(size * 1.5)
end
Expand All @@ -49,7 +50,7 @@ function DedicatedBuffer.alloc(self: any, byte: number)
end

function DedicatedBuffer.build(self: any): buffer
local p: number = self.point
local p: number = self.next > self.point and self.next or self.point
local build: buffer = create(p)

copy(build, 0, self.buffer, 0, p)
Expand Down

0 comments on commit 5cf44bd

Please sign in to comment.