Skip to content

Commit 0ab8ae9

Browse files
daurnimatorandrewrk
authored andcommitted
std: reader.skipBytes's num_bytes should be a u64
1 parent 3468872 commit 0ab8ae9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/std/io/reader.zig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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

0 commit comments

Comments
 (0)