fix: Another use of ssize_t

(cherry picked from commit 5b9b5d4f1f)
This commit is contained in:
WerWolv
2025-12-30 14:35:56 +01:00
parent 35e8c73f7c
commit 1537e98d80

View File

@@ -271,7 +271,7 @@ namespace hex::plugin::builtin {
} else {
if (m_fileSize == 0) {
while (true) {
constexpr static ssize_t ChunkSize = 1_MiB;
constexpr static i64 ChunkSize = 1_MiB;
auto startSize = m_data.size();
m_data.resize(startSize + ChunkSize);
auto result = m_file.readBuffer(m_data.data() + startSize, ChunkSize);