diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2016-09-09 08:58:39 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2016-09-10 20:53:57 -0400 |
| commit | 9e92dbdd0889a68e32cde85c1a07767200a9ad7e (patch) | |
| tree | 3011d68e950e0e1305c7bc8cc65d9b0be2b38647 /std/io.zig | |
| parent | 100990b052be249c23743140d19ced37d463b51d (diff) | |
| download | zig-9e92dbdd0889a68e32cde85c1a07767200a9ad7e.tar.gz zig-9e92dbdd0889a68e32cde85c1a07767200a9ad7e.zip | |
std: use parameter type inference on min and max functions
Diffstat (limited to 'std/io.zig')
| -rw-r--r-- | std/io.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/std/io.zig b/std/io.zig index a0c868f816..e060251b0a 100644 --- a/std/io.zig +++ b/std/io.zig @@ -79,7 +79,7 @@ pub struct OutStream { const dest_space_left = os.buffer.len - os.index; while (src_bytes_left > 0) { - const copy_amt = math.min(usize, dest_space_left, src_bytes_left); + const copy_amt = math.min(dest_space_left, src_bytes_left); @memcpy(&os.buffer[os.index], &bytes[src_index], copy_amt); os.index += copy_amt; if (os.index == os.buffer.len) { |
