silenced some warnings.

This commit is contained in:
Christoph Oelckers 2023-12-21 00:03:37 +01:00
parent 27da9b6b79
commit af4eaf69e3
13 changed files with 27 additions and 26 deletions

View file

@ -71,7 +71,7 @@ void InsertMap(int lumpnum)
current->entries.Last().displayname = path.Last();
current->entries.Last().filename = fileSystem.GetFileFullName(lumpnum);
current->entries.Last().container = fileSystem.GetResourceFileName(fileSystem.GetFileContainer(lumpnum));
current->entries.Last().size = fileSystem.FileLength(lumpnum);
current->entries.Last().size = (int)fileSystem.FileLength(lumpnum);
auto mapinfo = FindMapByName(StripExtension(path.Last().GetChars()).GetChars());
if (mapinfo) current->entries.Last().info = mapinfo->name;
}

View file

@ -94,7 +94,7 @@ TArray<uint8_t> RazeSoundEngine::ReadSound(int lumpnum)
auto wlump = fileSystem.OpenFileReader(lumpnum);
TArray<uint8_t> buffer(wlump.GetLength(), true);
auto len = wlump.Read(buffer.data(), buffer.size());
buffer.Resize(len);
buffer.Resize((unsigned)len);
return buffer;
}