From 75b53b5254ee8e213c0923fd9463cef708be7ef6 Mon Sep 17 00:00:00 2001 From: Jaakko Ruohio Date: Fri, 11 Oct 2024 08:35:31 +0300 Subject: [PATCH 1/2] Try to fix StringVector usage in 32-bit systems --- src/utils.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.jl b/src/utils.jl index 9e64248..97832d3 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 From 8fcabff25391d724a1212917b12685c5fef24e1d Mon Sep 17 00:00:00 2001 From: Jaakko Ruohio Date: Fri, 11 Oct 2024 08:40:03 +0300 Subject: [PATCH 2/2] One more --- src/utils.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.jl b/src/utils.jl index 97832d3..2082513 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -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