We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
write(::IO, ::String)
1 parent dcd8cad commit 920c936Copy full SHA for 920c936
base/strings/io.jl
@@ -246,7 +246,7 @@ end
246
247
# optimized methods to avoid iterating over chars
248
write(io::IO, s::Union{String,SubString{String}}) =
249
- GC.@preserve s Int(unsafe_write(io, pointer(s), reinterpret(UInt, sizeof(s))))::Int
+ GC.@preserve s (unsafe_write(io, pointer(s), reinterpret(UInt, sizeof(s))) % Int)::Int
250
print(io::IO, s::Union{String,SubString{String}}) = (write(io, s); nothing)
251
252
"""
0 commit comments