| ... | ... | @@ -5439,7 +5439,9 @@ pub fn sendfile( |
| 5439 | 5439 | } |
| 5440 | 5440 | |
| 5441 | 5441 | // Here we match BSD behavior, making a zero count value send as many bytes as possible. |
| 5442 | | const adjusted_count = if (in_len == 0) max_count else @minimum(in_len, @as(size_t, max_count)); |
| 5442 | const adjusted_count_tmp = if (in_len == 0) max_count else @minimum(in_len, @as(size_t, max_count)); |
| 5443 | // TODO we should not need this cast; improve return type of @minimum |
| 5444 | const adjusted_count = @intCast(usize, adjusted_count_tmp); |
| 5443 | 5445 | |
| 5444 | 5446 | const sendfile_sym = if (builtin.link_libc) |
| 5445 | 5447 | system.sendfile64 |