From 6109e49c5b0341fba8de9cf49e1a4071a7637273 Mon Sep 17 00:00:00 2001 From: schroffl Date: Sun, 24 Nov 2019 18:37:48 +0100 Subject: [PATCH] Fix FixedSizeFifo buffer type Update the `.buf` property to be a slice of the type that is given as a parameter. --- lib/std/fifo.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/fifo.zig b/lib/std/fifo.zig index 73f9b2dee7..22da02c8af 100644 --- a/lib/std/fifo.zig +++ b/lib/std/fifo.zig @@ -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,