diff options
author | Roland Reichwein <mail@reichwein.it> | 2020-10-18 18:38:26 +0200 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2020-10-18 18:38:26 +0200 |
commit | fe722b9304052b7a0a67fe01633c24ba5b4cdafa (patch) | |
tree | 7656b558c4dea8221bff07377253c66ec9f79086 /asm/intel64 | |
parent | 8a2d1dc5c8b6639985d26d1c915048d87d52426b (diff) |
Implemented insertAddresses()
Diffstat (limited to 'asm/intel64')
-rw-r--r-- | asm/intel64/jmp.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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<AsmArgs::Label>(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(); } |