Skip to content

Commit

Permalink
SporeModManager: cast std::streamoff to size_t
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosalie241 committed Nov 28, 2023
1 parent 0c36596 commit de2c008
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SporeModManager/SporeModManagerHelpers/FileVersion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ bool FileVersion::ParseFile(std::filesystem::path path, FileVersionInfo& fileVer
return false;
}

std::vector<char> buffer(fileStreamLength);
std::vector<char> buffer((size_t)fileStreamLength);
fileStream.read(buffer.data(), fileStreamLength);

if (fileStream.fail())
Expand Down

0 comments on commit de2c008

Please sign in to comment.