Skip to content

Commit

Permalink
Merge pull request #11 from Hanaasagi/zig-0.12
Browse files Browse the repository at this point in the history
chore: compact latest zig v0.12.0-dev.1819+5c1428ea9
  • Loading branch information
magurotuna authored Dec 13, 2023
2 parents c8ca9d7 + b0ea92a commit 7113806
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions build.zig.zon
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
.name = "zig-deque",
.version = "0.1.0",
.dependencies = .{},
.paths = .{""},
}
2 changes: 1 addition & 1 deletion src/deque.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7113806

Please sign in to comment.