Skip to content

Commit 9c91524

Browse files
authored
Merge pull request #18 from giordano/start-int64
Force `start` field of handles to be `Int64`
2 parents bcd510c + adfbe09 commit 9c91524

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/COFF/COFFHandle.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ client applications will interact with COFF files.
99
struct COFFHandle{T<:IO} <: ObjectHandle
1010
# Backing IOS and start point within the IOStream of this COFF object
1111
io::T
12-
start::Int
12+
start::Int64
1313

1414
# The parsed-out header of the COFF object
1515
header::COFFHeader
@@ -63,7 +63,7 @@ function readmeta(io::IO, ::Type{H}) where {H <: COFFHandle}
6363
opt_header = read(io, COFFOptionalHeader)
6464

6565
# Construct our COFFHandle, pilfering the filename from the IOStream
66-
return COFFHandle(io, start, header, header_offset, opt_header, path(io))
66+
return COFFHandle(io, Int64(start), header, header_offset, opt_header, path(io))
6767
end
6868

6969

src/ELF/ELFHandle.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ client applications will interact with ELF files.
1414
struct ELFHandle{T<:IO} <: ObjectHandle
1515
# Backing IOS and start point within the IOStream of this ELF object
1616
io::T
17-
start::Int
17+
start::Int64
1818

1919
# Elf Internal data such as endianness, version, OS ABI, etc...
2020
ei::ELFInternal
@@ -56,7 +56,7 @@ function readmeta(io::IO, ::Type{H}) where {H <: ELFHandle}
5656
seek(io, start)
5757

5858
# Construct our ELFHandle, pilfering the filename from the IOStream
59-
return ELFHandle(io, start, ei, header, path(io))
59+
return ELFHandle(io, Int64(start), ei, header, path(io))
6060
end
6161

6262

src/MachO/MachOHandle.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ export MachOHandle, FatMachOHandle
33
struct MachOHandle{T <: IO} <: ObjectHandle
44
# Backing IO and start point within the IOStream of this MachO object
55
io::T
6-
start::Int
6+
start::Int64
77

88
# The parsed-out header of the MachO object
99
header::MachOHeader
@@ -30,7 +30,7 @@ function readmeta(io::IO,::Type{MachOHandle})
3030

3131
# Unpack the header
3232
header = unpack(io, header_type, endianness)
33-
return MachOHandle(io, start, header, path(io))
33+
return MachOHandle(io, Int64(start), header, path(io))
3434
end
3535

3636
## IOStream-like operations:

0 commit comments

Comments
 (0)