From fe722b9304052b7a0a67fe01633c24ba5b4cdafa Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sun, 18 Oct 2020 18:38:26 +0200 Subject: Implemented insertAddresses() --- asm/intel64/jmp.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'asm/intel64') diff --git a/asm/intel64/jmp.cpp b/asm/intel64/jmp.cpp index 30ae546..3899cac 100644 --- a/asm/intel64/jmp.cpp +++ b/asm/intel64/jmp.cpp @@ -78,18 +78,18 @@ Op_jmp::Op_jmp(const std::string& name, AsmArgs& args, const OP_T& jmp8, const O label = std::any_cast(args[0]).name(); if (!jmp32.empty()) { // set machine_code - machine_code = jmp32 + OP_T{size_t(4), uint8_t(0)}; + machine_code = jmp32 + OP_T(size_t(4), uint8_t(0)); addr_size = 4; addr_offs = jmp32.size(); if (!jmp8.empty()) { // also provide alternative - alternative_code = jmp8 + OP_T{size_t(1), uint8_t(0)}; + alternative_code = jmp8 + OP_T(size_t(1), uint8_t(0)); alternative_size = 1; alternative_offs = jmp8.size(); } } if (machine_code.empty() && !jmp8.empty()) { - machine_code = jmp8 + OP_T{size_t(1), uint8_t(0)}; + machine_code = jmp8 + OP_T(size_t(1), uint8_t(0)); addr_size = 1; addr_offs = jmp8.size(); } -- cgit v1.2.3