- another one.

This would be easier if Travis CI didn't abort compilation after each single error...
This commit is contained in:
Christoph Oelckers 2018-03-11 23:25:30 +01:00
parent 011bf9d9aa
commit 54061ad50c
1 changed files with 3 additions and 2 deletions

View File

@ -313,7 +313,7 @@ void FWadCollection::AddFile (const char *filename, FileReader *wadr)
sprintf(cksumout + (j * 2), "%02X", cksum[j]);
}
fprintf(hashfile, "file: %s, hash: %s, size: %lld\n", filename, cksumout, (int64_t)wadreader.GetLength());
fprintf(hashfile, "file: %s, hash: %s, size: %d\n", filename, cksumout, (int)wadreader.GetLength());
}
else
@ -326,7 +326,8 @@ void FWadCollection::AddFile (const char *filename, FileReader *wadr)
if (!(lump->Flags & LUMPF_EMBEDDED))
{
MD5Context md5;
md5.Update(lump->NewReader(), lump->LumpSize);
auto reader = lump->NewReader();
md5.Update(reader, lump->LumpSize);
md5.Final(cksum);
for (size_t j = 0; j < sizeof(cksum); ++j)