aboutsummaryrefslogtreecommitdiff
path: root/src/js_ast.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/js_ast.zig')
-rw-r--r--src/js_ast.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/js_ast.zig b/src/js_ast.zig
index 82032b058..dd5efd65b 100644
--- a/src/js_ast.zig
+++ b/src/js_ast.zig
@@ -103,14 +103,14 @@ pub fn NewBaseStore(comptime Union: anytype, comptime count: usize) type {
var used = _self.overflow.allocator.dupe(*Block, _self.overflow.slice()) catch unreachable;
var new_head = _self.overflow.allocator.create(Block) catch unreachable;
- new_head.* = Block{};
+ new_head.* = .{};
var to_move = _self.overflow.ptrs[0.._self.overflow.allocated][_self.overflow.used..];
if (to_move.len > 0) {
to_move = to_move[1..];
}
- std.mem.copyBackwards(*Block, _self.overflow.ptrs[1..], to_move);
+ bun.copy(*Block, _self.overflow.ptrs[1..], to_move);
_self.overflow.ptrs[0] = new_head;
_self.overflow.allocated = 1 + @truncate(Overflow.UsedSize, to_move.len);
reset();