| author | |
| committer | |
| log | 53fb59ea9b148a9d1f694039898eb60a1df75535 |
| tree | ec825c240a589ef6815c986746a3cdb7b73da2c6 |
| parent | fbce6a749da9e3714d5e0fb662a3849b34cc9f89 |
1 files changed, 1 insertions(+), 0 deletions(-)
lib/std/fifo.zig+1| ... | ... | @@ -385,6 +385,7 @@ pub fn LinearFifo( |
| 385 | 385 | } |
| 386 | 386 | |
| 387 | 387 | pub fn toOwnedSlice(self: *Self) Allocator.Error![]T { |
| 388 | if (self.head != 0) self.realign(); | |
| 388 | 389 | assert(self.head == 0); |
| 389 | 390 | assert(self.count <= self.buf.len); |
| 390 | 391 | const allocator = self.allocator; |