fix warnings

This commit is contained in:
robert-yates
2024-11-23 19:02:49 +01:00
parent 22d64437aa
commit 6b51b143bc
4 changed files with 10 additions and 8 deletions

View File

@@ -90,7 +90,7 @@ namespace
restore_emulator();
const auto memory = emu.emu().allocate_memory(page_align_up(std::max(data.size(), 1ULL)),
const auto memory = emu.emu().allocate_memory(page_align_up(std::max(data.size(), size_t(1))),
memory_permission::read_write);
emu.emu().write_memory(memory, data.data(), data.size());