File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ keys(h::FatMachOHandle) = 1:length(h)
6767iterate (h:: FatMachOHandle , idx= 1 ) = idx > length (h) ? nothing : (h[idx], idx+ 1 )
6868lastindex (h:: FatMachOHandle ) = lastindex (h. header. archs)
6969length (h:: FatMachOHandle ) = length (h. header. archs)
70- eltype (:: Type{S} ) where {S <: FatMachOHandle } = MachOLoadCmdRef
70+ eltype (:: Type{<: FatMachOHandle} ) = MachOHandle
7171function getindex (h:: FatMachOHandle , idx)
7272 seek (h. io, h. start + h. header. archs[idx]. offset)
7373 only (readmeta (h. io, MachOHandle))
Original file line number Diff line number Diff line change @@ -204,6 +204,10 @@ function test_fat_libfoo(file)
204204 end
205205 @test ntotal == 2
206206 @test n64 == 1
207+
208+ handles = collect (ohs)
209+ @test handles isa Vector{<: MachOHandle }
210+ @test length (handles) == 2
207211end
208212
209213function test_metal (file)
You can’t perform that action at this time.
0 commit comments