mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 14:51:40 +00:00
- another one.
This would be easier if Travis CI didn't abort compilation after each single error...
This commit is contained in:
parent
011bf9d9aa
commit
54061ad50c
1 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue