From b0ea92a8e36e995cbae3ce8f064ee11fa75a9675 Mon Sep 17 00:00:00 2001 From: Hanaasagi Date: Wed, 13 Dec 2023 14:06:02 +0900 Subject: [PATCH] chore: compact latest zig v0.12.0-dev.1819+5c1428ea9 --- build.zig.zon | 1 + src/deque.zig | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 {