authorgravatar for quae@daurnimator.comdaurnimator <quae@daurnimator.com> 2020-11-19 22:50:56+11:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-01-11 16:47:48-07:00
log0ab8ae944cd2b48c783c4ca8963997b6af207d5e
treefb470e0ccae78334d7a7655dc30292aaca7f56a8
parent3468872d8376602fdbfdb5b0d6d582c278ad1990

std: reader.skipBytes's num_bytes should be a u64


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

lib/std/io/reader.zig+2-1
......@@ -271,8 +271,9 @@ pub fn Reader(
271271 buf_size: usize = 512,
272272 };
273273
274 // `num_bytes` is a `u64` to match `off_t`
274275 /// Reads `num_bytes` bytes from the stream and discards them
275 pub fn skipBytes(self: Self, num_bytes: usize, comptime options: SkipBytesOptions) !void {
276 pub fn skipBytes(self: Self, num_bytes: u64, comptime options: SkipBytesOptions) !void {
276277 var buf: [options.buf_size]u8 = undefined;
277278 var remaining = num_bytes;
278279