Skip to content
Snippets Groups Projects
Commit 411dca12 authored by Jason Hiser's avatar Jason Hiser :tractor:
Browse files

changed int8_t to char for string::value_type for when int8_t!=char

parent dca582d0
No related branches found
No related tags found
No related merge requests found
...@@ -236,7 +236,7 @@ Instruction_t* getHandlerCode(FileIR_t* virp, Instruction_t* fallthrough, mitiga ...@@ -236,7 +236,7 @@ Instruction_t* getHandlerCode(FileIR_t* virp, Instruction_t* fallthrough, mitiga
} }
const auto func_id = fallthrough->getFunction()->getBaseID(); const auto func_id = fallthrough->getFunction()->getBaseID();
auto new_insn_bits_start = string{0x48, (int8_t)0xc7, 0x05, (int8_t)0xf5, (int8_t)0xff, (int8_t)0xff, (int8_t)0xff}; auto new_insn_bits_start = string{0x48, (char)0xc7, 0x05, (char)0xf5, (char)0xff, (char)0xff, (char)0xff};
auto new_insn_bits = new_insn_bits_start + string(reinterpret_cast<const char*>(&func_id), 4); auto new_insn_bits = new_insn_bits_start + string(reinterpret_cast<const char*>(&func_id), 4);
// note: updates handler_code to be the newly inserted instruction // note: updates handler_code to be the newly inserted instruction
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment