mirror of
https://github.com/ZDoom/Raze.git
synced 2025-05-31 01:11:15 +00:00
silenced some warnings.
This commit is contained in:
parent
27da9b6b79
commit
af4eaf69e3
13 changed files with 27 additions and 26 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue