Skip to content

Commit 5f534b0

Browse files
committed
Small fix for Mmap change
1 parent 9803242 commit 5f534b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Compat.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ if VERSION < v"0.4.0-dev+5697"
504504
::Type{Array{T,N}}=Vector{UInt8},
505505
dims::NTuple{N,Integer}=(div(filesize(io)-position(io),sizeof(T)),),
506506
offset::Integer=position(io); grow::Bool=true, shared::Bool=true)
507-
mmap_array(T,dims,io::IO,offset)
507+
mmap_array(T,dims,io::IO,convert(FileOffset,offset))
508508
end
509509

510510
mmap{T<:Array,N}(file::String,

0 commit comments

Comments
 (0)