authorgravatar for schroffl@users.noreply.github.comschroffl <schroffl@users.noreply.github.com> 2019-11-24 18:37:48+01:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-11-24 14:42:56-05:00
log6109e49c5b0341fba8de9cf49e1a4071a7637273
treefa21dae7ba5e28ef9a8644c4a3c2cb88f05a202f
parent2b1faa1f20ce22c07d7767e8af3bc64614b0ca0e

Fix FixedSizeFifo buffer type

Update the `.buf` property to be a slice of the type that is given as a parameter.

1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/fifo.zig+1-1
......@@ -12,7 +12,7 @@ const testing = std.testing;
1212pub fn FixedSizeFifo(comptime T: type) type {
1313 return struct {
1414 allocator: *Allocator,
15 buf: []u8,
15 buf: []T,
1616 head: usize,
1717 count: usize,
1818