From de2c008826c299fb7335e9f14603568523a11d0a Mon Sep 17 00:00:00 2001 From: Rosalie Wanders Date: Tue, 28 Nov 2023 10:50:49 +0100 Subject: [PATCH] SporeModManager: cast std::streamoff to size_t --- SporeModManager/SporeModManagerHelpers/FileVersion.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SporeModManager/SporeModManagerHelpers/FileVersion.cpp b/SporeModManager/SporeModManagerHelpers/FileVersion.cpp index 48f0f9e..fdae28c 100644 --- a/SporeModManager/SporeModManagerHelpers/FileVersion.cpp +++ b/SporeModManager/SporeModManagerHelpers/FileVersion.cpp @@ -141,7 +141,7 @@ bool FileVersion::ParseFile(std::filesystem::path path, FileVersionInfo& fileVer return false; } - std::vector buffer(fileStreamLength); + std::vector buffer((size_t)fileStreamLength); fileStream.read(buffer.data(), fileStreamLength); if (fileStream.fail())