Skip to content

Commit 763c225

Browse files
vtjnashKristofferC
authored andcommittedOct 21, 2024
REPL: fix unsafe_write return type (#56220)
Fixes: #56219 I am not really sure why we have a test for this, but we need to make the test happy
1 parent 4178420 commit 763c225

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎stdlib/REPL/src/REPL.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ function Base.unsafe_write(limiter::LimitIO, p::Ptr{UInt8}, nb::UInt)
525525
end
526526

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

0 commit comments

Comments
 (0)