Skip to content

Commit

Permalink
REPL: fix unsafe_write return type
Browse files Browse the repository at this point in the history
Fixes: #56219
  • Loading branch information
vtjnash authored Oct 17, 2024
1 parent d36417b commit aca6229
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 aca6229

Please sign in to comment.