diff --git a/build.zig.zon b/build.zig.zon index 7d56c83..8efa31d 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -2,4 +2,5 @@ .name = "zig-deque", .version = "0.1.0", .dependencies = .{}, + .paths = .{""}, } diff --git a/src/deque.zig b/src/deque.zig index 229076a..1a369cb 100644 --- a/src/deque.zig +++ b/src/deque.zig @@ -259,7 +259,7 @@ pub fn Deque(comptime T: type) type { fn copyNonOverlapping(self: *Self, dest: usize, src: usize, length: usize) void { assert(dest + length <= self.cap()); assert(src + length <= self.cap()); - mem.copy(T, self.buf[dest .. dest + length], self.buf[src .. src + length]); + @memcpy(self.buf[dest .. dest + length], self.buf[src .. src + length]); } fn wrapAdd(self: Self, idx: usize, addend: usize) usize {