From c1388c731820d9847c9d54f698c55e07752bc5ea Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Tue, 2 May 2023 00:00:02 -0500 Subject: [PATCH] fix: std.mem.set deprecated --- src/lib.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.zig b/src/lib.zig index 037422b..184b958 100644 --- a/src/lib.zig +++ b/src/lib.zig @@ -109,7 +109,7 @@ 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); - std.mem.set(T, buf, 0); + @memset(buf, 0); return .{ .read = 0, .write = 0, .buf = buf }; }