Skip to content

Commit

Permalink
Merge pull request #16 from jaakkor2/trytofix32
Browse files Browse the repository at this point in the history
Try to fix StringVector usage in 32-bit systems
  • Loading branch information
jaakkor2 authored Oct 11, 2024
2 parents 83e25d2 + 8fcabff commit ef622fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit ef622fc

Please sign in to comment.