Add a GUI to ZBA #7

Merged
paoda merged 24 commits from imgui into main 2023-03-11 03:18:15 +00:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 54143332ab - Show all commits

View File

@ -365,7 +365,7 @@ pub fn RingBuffer(comptime T: type) type {
const count = std.math.min(self.len(), cpy.len); const count = std.math.min(self.len(), cpy.len);
var start: Index = self.read; var start: Index = self.read;
for (cpy) |*v, i| { for (cpy, 0..) |*v, i| {
if (i >= count) break; if (i >= count) break;
v.* = self.buf[self.mask(start)]; v.* = self.buf[self.mask(start)];