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;...@@ -12,7 +12,7 @@ const testing = std.testing;
12pub fn FixedSizeFifo(comptime T: type) type {12pub fn FixedSizeFifo(comptime T: type) type {
13 return struct {13 return struct {
14 allocator: *Allocator,14 allocator: *Allocator,
15 buf: []u8,15 buf: []T,
16 head: usize,16 head: usize,
17 count: usize,17 count: usize,
1818