mirror of
https://github.com/ziglang/zig.git
synced 2025-02-09 22:20:17 +00:00
Fix FixedSizeFifo buffer type
Update the `.buf` property to be a slice of the type that is given as a parameter.
This commit is contained in:
parent
2b1faa1f20
commit
6109e49c5b
@ -12,7 +12,7 @@ const testing = std.testing;
|
|||||||
pub fn FixedSizeFifo(comptime T: type) type {
|
pub fn FixedSizeFifo(comptime T: type) type {
|
||||||
return struct {
|
return struct {
|
||||||
allocator: *Allocator,
|
allocator: *Allocator,
|
||||||
buf: []u8,
|
buf: []T,
|
||||||
head: usize,
|
head: usize,
|
||||||
count: usize,
|
count: usize,
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user