From d02e170dacb8c9bceb70ca2cb3b92836f8df1829 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Fri, 6 Dec 2024 22:03:12 +0100 Subject: [PATCH] fix: Build issue on systems where size_t is not u64 --- plugins/builtin/source/content/views/view_hex_editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/builtin/source/content/views/view_hex_editor.cpp b/plugins/builtin/source/content/views/view_hex_editor.cpp index 188ebdb25..3b5a8d152 100644 --- a/plugins/builtin/source/content/views/view_hex_editor.cpp +++ b/plugins/builtin/source/content/views/view_hex_editor.cpp @@ -456,7 +456,7 @@ namespace hex::plugin::builtin { constexpr static auto BatchFillSize = 1_MiB; std::vector batchData; if (bytes.size() < BatchFillSize) { - batchData.resize(std::min(alignTo(BatchFillSize, bytes.size()), size)); + batchData.resize(std::min(alignTo(BatchFillSize, bytes.size()), size)); for (u64 i = 0; i < batchData.size(); i += bytes.size()) { auto remainingSize = std::min(batchData.size() - i, bytes.size()); std::copy_n(bytes.begin(), remainingSize, batchData.begin() + i);