p_djgpp2.{cpp,h}: remove usage of "long".
This commit is contained in:
parent
015ebf89a5
commit
5abb578e47
@ -138,16 +138,16 @@ void PackDjgpp2::handleStub(OutputFile *fo)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static bool is_dlm(InputFile *fi, long coff_offset)
|
static bool is_dlm(InputFile *fi, unsigned coff_offset)
|
||||||
{
|
{
|
||||||
unsigned char buf[4];
|
unsigned char buf[4];
|
||||||
long off;
|
unsigned off;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
fi->seek(coff_offset, SEEK_SET);
|
fi->seek(coff_offset, SEEK_SET);
|
||||||
fi->readx(buf, 4);
|
fi->readx(buf, 4);
|
||||||
off = get_le32(buf);
|
off = get_le32(buf);
|
||||||
if (off < 0 || off > coff_offset + 4)
|
if (off > coff_offset + 4)
|
||||||
return false;
|
return false;
|
||||||
fi->seek(off, SEEK_SET);
|
fi->seek(off, SEEK_SET);
|
||||||
fi->readx(buf, 4);
|
fi->readx(buf, 4);
|
||||||
|
|||||||
@ -64,7 +64,7 @@ protected:
|
|||||||
virtual void buildLoader(const Filter *ft);
|
virtual void buildLoader(const Filter *ft);
|
||||||
virtual Linker* newLinker() const;
|
virtual Linker* newLinker() const;
|
||||||
|
|
||||||
long coff_offset;
|
unsigned coff_offset;
|
||||||
|
|
||||||
__packed_struct(external_scnhdr_t)
|
__packed_struct(external_scnhdr_t)
|
||||||
char _[12]; // name, paddr
|
char _[12]; // name, paddr
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user