authorgravatar for quae@daurnimator.comdaurnimator <quae@daurnimator.com> 2019-11-23 17:57:17+11:00
committergravatar for quae@daurnimator.comdaurnimator <quae@daurnimator.com> 2019-11-25 09:26:33+11:00
logb4091e3aec1e13350983f8f8df31280b285fe111
tree781f355f051f7a9ac68692e6027e7b4a5b3c4021
parent3062e0e9320a3ce9447e4611919cbe93296a1ce1
signaturelock-open Commit is signed but in an unrecognized format.

std: fifo.deinit didn't need to take a pointer


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

lib/std/fifo.zig+1-2
...@@ -78,9 +78,8 @@ pub fn LinearFifo(...@@ -78,9 +78,8 @@ pub fn LinearFifo(
78 },78 },
79 };79 };
8080
81 pub fn deinit(self: *Self) void {81 pub fn deinit(self: Self) void {
82 if (buffer_type == .Dynamic) self.allocator.free(self.buf);82 if (buffer_type == .Dynamic) self.allocator.free(self.buf);
83 self.* = undefined;
84 }83 }
8584
86 pub fn realign(self: *Self) void {85 pub fn realign(self: *Self) void {