From 14ea006f4ffae77a333de4993c89690ce94d4abc Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Wed, 20 Dec 2023 11:37:11 -0600 Subject: [PATCH] fix(RingBuffer): remove restrictive memset --- src/lib.zig | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/lib.zig b/src/lib.zig index f3127dc..b99a8f8 100644 --- a/src/lib.zig +++ b/src/lib.zig @@ -200,8 +200,6 @@ pub fn RingBuffer(comptime T: type) type { std.debug.assert(std.math.isPowerOfTwo(buf.len)); // capacity must be a power of two std.debug.assert(buf.len <= max_capacity); - @memset(buf, 0); - return .{ .read = 0, .write = 0, .buf = buf }; }