Skip to content

Commit 30243c9

Browse files
CopilotMoelf
andcommitted
Identify root cause of EOF error
Co-authored-by: Moelf <5306213+Moelf@users.noreply.github.com>
1 parent 584c156 commit 30243c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/io.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function readtype(io, ::Type{T}) where T<:AbstractString
3535
length = readtype(io, UInt32)
3636
end
3737

38-
T(read(io, length))
38+
T(read(io, Int(length)))
3939
end
4040

4141
struct CString

0 commit comments

Comments
 (0)