diff --git a/src/utils.jl b/src/utils.jl index 9e64248..2082513 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -35,7 +35,7 @@ function check_magic(io) end function to_str(buffer, n, lengths::AbstractVector) - str = StringVector{String}(buffer, n) + str = StringVector{String}(buffer, Int(n)) str.lengths .= lengths offset = UInt64(0) @inbounds for i in 1:n @@ -46,7 +46,7 @@ function to_str(buffer, n, lengths::AbstractVector) end function to_str(buffer, n, length::Integer) - str = StringVector{String}(buffer, n) + str = StringVector{String}(buffer, Int(n)) str.lengths .= length offset = UInt64(0) @inbounds for i in 1:n