p_djgpp2.{cpp,h}: remove usage of "long".

This commit is contained in:
Markus F.X.J. Oberhumer 2015-01-03 01:12:46 +01:00
parent 015ebf89a5
commit 5abb578e47
2 changed files with 4 additions and 4 deletions

View File

@ -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];
long off;
unsigned off;
try {
fi->seek(coff_offset, SEEK_SET);
fi->readx(buf, 4);
off = get_le32(buf);
if (off < 0 || off > coff_offset + 4)
if (off > coff_offset + 4)
return false;
fi->seek(off, SEEK_SET);
fi->readx(buf, 4);

View File

@ -64,7 +64,7 @@ protected:
virtual void buildLoader(const Filter *ft);
virtual Linker* newLinker() const;
long coff_offset;
unsigned coff_offset;
__packed_struct(external_scnhdr_t)
char _[12]; // name, paddr