mirror of
https://github.com/ziglang/zig.git
synced 2025-02-04 12:01:18 +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 {
|
||||
return struct {
|
||||
allocator: *Allocator,
|
||||
buf: []u8,
|
||||
buf: []T,
|
||||
head: usize,
|
||||
count: usize,
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user