Commit 6109e49c5b

schroffl <schroffl@users.noreply.github.com>
2019-11-24 18:37:48
Fix FixedSizeFifo buffer type
Update the `.buf` property to be a slice of the type that is given as a parameter.
1 parent 2b1faa1
Changed files (1)
lib
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,