Fix #10987 - Drop bracket requirement for LEA if constant operand (#11050)

This commit is contained in:
Khairul Azhar Kasmiran 2018-08-12 18:37:43 +08:00 committed by radare
parent 762e3d0f92
commit d48e036357

View File

@ -1341,7 +1341,7 @@ static int oplea(RAsm *a, ut8 *data, const Opcode *op){
int reg = 0;
int rm = 0;
if (op->operands[0].type & OT_REGALL &&
op->operands[1].type & OT_MEMORY) {
op->operands[1].type & (OT_MEMORY | OT_CONSTANT)) {
if (a->bits == 64) {
data[l++] = 0x48;
}