Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ void Execution::ret(ContextInterface& context, MemoryAddress ret_offset, MemoryA
auto& memory = context.get_memory();

// TODO: check tags and types (only for size, the return data is converted to FF).
size_t size = static_cast<size_t>(memory.get(ret_size_offset).value);
uint32_t size = static_cast<uint32_t>(memory.get(ret_size_offset).value);
auto [values, _] = memory.get_slice(ret_offset, size);

context_stack.pop();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

#include <cassert>
#include <cstdint>
#include <format>
#include <iomanip>
#include <span>
#include <sstream>
Expand Down Expand Up @@ -456,7 +455,7 @@ Instruction decode_instruction(std::span<const uint8_t> bytecode, size_t pos)
std::string Instruction::to_string() const
{
std::ostringstream oss;
oss << opcode << " indirect: " << std::format("{:b}", indirect) << ", operands: [ ";
oss << opcode << " indirect: " << indirect << ", operands: [ ";
for (const auto& operand : operands) {
oss << operand.to_string() << " ";
}
Expand Down
Loading