Skip to content

Commit

Permalink
remove redundant UInt conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
nhz2 committed Sep 15, 2024
1 parent 7fb5142 commit d6e3815
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/iobuffer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ end
function unsafe_read(from::GenericIOBuffer, p::Ptr{UInt8}, nb::UInt)
from.readable || _throw_not_readable()
avail = bytesavailable(from)
adv = UInt(min(avail, nb))
adv = min(avail, nb)
unsafe_read!(p, from.data, from.ptr, adv)
from.ptr += adv
if nb > avail
Expand Down

0 comments on commit d6e3815

Please sign in to comment.