Skip to content

Commit

Permalink
REPL: fix unsafe_write return type (#56220)
Browse files Browse the repository at this point in the history
Fixes: #56219

I am not really sure why we have a test for this, but we need to make
the test happy
  • Loading branch information
vtjnash authored and KristofferC committed Oct 21, 2024
1 parent 4178420 commit 763c225
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/REPL/src/REPL.jl
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ function Base.unsafe_write(limiter::LimitIO, p::Ptr{UInt8}, nb::UInt)
end

# We won't hit the limit so we'll write the full `nb` bytes
bytes_written = Base.unsafe_write(limiter.io, p, nb)
bytes_written = Base.unsafe_write(limiter.io, p, nb)::Union{Int,UInt}
limiter.n += bytes_written
return bytes_written
end
Expand Down

0 comments on commit 763c225

Please sign in to comment.