Skip to content

Commit

Permalink
Update Connections.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
vtjnash authored Feb 17, 2024
1 parent b240a83 commit 19c64e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Connections.jl
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ function read_to_buffer(c::Connection, sizehint=4096)
n = min(sizehint, bytesavailable(c.io))
buf = c.buffer
p, n = Base.alloc_request(buf, UInt(n))
n = GC.@preserve buf unsafe_read(c.io, p, min(n, bytesavailable(c.io)))
GC.@preserve buf (n = unsafe_read(c.io, p, min(n, bytesavailable(c.io))))
Base.notify_filled(buf, Int(n))
nothing
end
Expand Down

0 comments on commit 19c64e4

Please sign in to comment.