2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2026-07-04 23:00:04 +00:00

refactor: only use sizeof with parenthesis

This commit is contained in:
Jan
2024-03-24 19:56:06 +01:00
parent 4f0ee35740
commit 1b13f1f1b4
16 changed files with 33 additions and 33 deletions
+2 -2
View File
@@ -33,8 +33,8 @@ std::unique_ptr<Zone> ZoneLoading::LoadZone(const std::string& path)
}
ZoneHeader header{};
file.read(reinterpret_cast<char*>(&header), sizeof header);
if (file.gcount() != sizeof header)
file.read(reinterpret_cast<char*>(&header), sizeof(header));
if (file.gcount() != sizeof(header))
{
std::cout << "Failed to read zone header from file '" << path << "'.\n";
return nullptr;