Commit 0ab8ae944c

daurnimator <quae@daurnimator.com>
2020-11-19 12:50:56
std: reader.skipBytes's num_bytes should be a u64
1 parent 3468872
Changed files (1)
lib
std
lib/std/io/reader.zig
@@ -271,8 +271,9 @@ pub fn Reader(
             buf_size: usize = 512,
         };
 
+        // `num_bytes` is a `u64` to match `off_t`
         /// Reads `num_bytes` bytes from the stream and discards them
-        pub fn skipBytes(self: Self, num_bytes: usize, comptime options: SkipBytesOptions) !void {
+        pub fn skipBytes(self: Self, num_bytes: u64, comptime options: SkipBytesOptions) !void {
             var buf: [options.buf_size]u8 = undefined;
             var remaining = num_bytes;