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:
schroffl 2019-11-24 18:37:48 +01:00 committed by Andrew Kelley
parent 2b1faa1f20
commit 6109e49c5b

View File

@ -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,