1
0
mirror of synced 2025-02-21 12:29:47 +01:00

fix: Build failing on macOS

This commit is contained in:
WerWolv 2023-01-28 21:30:17 +01:00
parent c6e1f45dc3
commit 434ced44f0

View File

@ -993,7 +993,7 @@ namespace hex::plugin::builtin {
u64 offset = selection->getStartAddress();
while (offset < selection->getEndAddress()) {
provider->read(offset, buffer.data(), std::min(buffer.size(), selection->size - (offset - selection->getStartAddress())));
provider->read(offset, buffer.data(), std::min<size_t>(buffer.size(), selection->size - (offset - selection->getStartAddress())));
auto [result, size] = customEncoding->getEncodingFor(buffer);
string += result;