summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/architecture.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/architecture.py b/python/architecture.py
index 2eb3c717..260f4392 100644
--- a/python/architecture.py
+++ b/python/architecture.py
@@ -1293,7 +1293,7 @@ class Architecture(object):
for i in xrange(len(operands)):
if isinstance(operands[i], str):
operand_list[i].constant = False
- operand_list[i].reg = self.regs[operands[i]]
+ operand_list[i].reg = self.regs[operands[i]].index
elif isinstance(operands[i], lowlevelil.ILRegister):
operand_list[i].constant = False
operand_list[i].reg = operands[i].index
@@ -1317,7 +1317,7 @@ class Architecture(object):
for i in xrange(len(operands)):
if isinstance(operands[i], str):
operand_list[i].constant = False
- operand_list[i].reg = self.regs[operands[i]]
+ operand_list[i].reg = self.regs[operands[i]].index
elif isinstance(operands[i], lowlevelil.ILRegister):
operand_list[i].constant = False
operand_list[i].reg = operands[i].index