aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-11-24 02:34:05 -0800
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-11-24 02:34:05 -0800
commit0c8fe888b93a8483aeff096c50a7296852c6a039 (patch)
treec56e07b5f6a334cb4fc1444b31fc93579d2df7a9
parent57fcd882fc5488dcd4a1e27aabc83a14d2f725d0 (diff)
downloadbun-0c8fe888b93a8483aeff096c50a7296852c6a039.tar.gz
bun-0c8fe888b93a8483aeff096c50a7296852c6a039.tar.zst
bun-0c8fe888b93a8483aeff096c50a7296852c6a039.zip
Update streams.zig
-rw-r--r--src/bun.js/webcore/streams.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bun.js/webcore/streams.zig b/src/bun.js/webcore/streams.zig
index 88e5c54ac..3e06717bf 100644
--- a/src/bun.js/webcore/streams.zig
+++ b/src/bun.js/webcore/streams.zig
@@ -3552,7 +3552,7 @@ pub const FIFO = struct {
return @intCast(u32, @maximum(len, 0));
}
- pub fn adjustCapacityOnLinux(this: *FIFO, current: u32, max: u32) void {
+ pub fn adjustPipeCapacityOnLinux(this: *FIFO, current: usize, max: usize) void {
// we do not un-mark it as readable if there's nothing in the pipe
if (!this.has_adjusted_pipe_size_on_linux) {
if (current > 0 and max >= std.mem.page_size * 16) {
@@ -3719,7 +3719,7 @@ pub const FIFO = struct {
if (available_to_read) |amt| {
if (amt >= buf.len) {
if (comptime Environment.isLinux) {
- this.adjustCapacityOnLinux(amt, buf.len);
+ this.adjustPipeCapacityOnLinux(amt, buf.len);
}
if (this.auto_sizer) |sizer| {