Skip to content

Commit

Permalink
libstd: Fix building on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
WerWolv committed Jul 4, 2024
1 parent 544bb88 commit a1ce3bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/source/pl/lib/std/mem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace pl::lib::libstd::mem {

std::vector<u8> bytes(std::max(sequence.size(), size_t(4 * 1024)), 0x00);
for (u64 offset = offsetFrom; offset < endOffset; offset += bytes.size()) {
const auto bytesToRead = std::min(bytes.size(), endOffset - offset);
const auto bytesToRead = std::min<std::size_t>(bytes.size(), endOffset - offset);
ctx->readData(offset, bytes.data(), bytesToRead, ptrn::Pattern::MainSectionId);
ctx->handleAbort();

Expand Down

0 comments on commit a1ce3bf

Please sign in to comment.