fix: std.mem.set deprecated
This commit is contained in:
parent
d794a57b4e
commit
c1388c7318
|
@ -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(std.math.isPowerOfTwo(buf.len)); // capacity must be a power of two
|
||||||
std.debug.assert(buf.len <= max_capacity);
|
std.debug.assert(buf.len <= max_capacity);
|
||||||
|
|
||||||
std.mem.set(T, buf, 0);
|
@memset(buf, 0);
|
||||||
|
|
||||||
return .{ .read = 0, .write = 0, .buf = buf };
|
return .{ .read = 0, .write = 0, .buf = buf };
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue