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

fixed compiler issue on centos

parent 0dd12a39
No related branches found
No related tags found
No related merge requests found
......@@ -324,7 +324,8 @@ void Push64Relocs_t::UpdatePush64Adds()
assert(insn_addr != 0);
const auto insn_bytes_len = sizeof(uint8_t)*insn->GetDataBits().length();
uint8_t insn_bytes[insn_bytes_len]={};
uint8_t insn_bytes[insn_bytes_len]; // compiler disallows init on some platforms.
// but memcpy should init it sufficiently.
memcpy(insn_bytes, insn->GetDataBits().c_str(), insn_bytes_len);
const auto d=DecodedInstruction_t(insn);
......
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