diff options
Diffstat (limited to '')
| -rw-r--r-- | miasm2/arch/x86/arch.py | 2 | ||||
| -rw-r--r-- | miasm2/core/cpu.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/miasm2/arch/x86/arch.py b/miasm2/arch/x86/arch.py index bf872667..3a0fb78e 100644 --- a/miasm2/arch/x86/arch.py +++ b/miasm2/arch/x86/arch.py @@ -256,7 +256,7 @@ cl_or_imm |= base_expr class x86_arg(m_arg): def asm_ast_to_expr(self, value, loc_db, size_hint=None, fixed_size=None): if size_hint is None: - size_hint = self.parent.v_opmode() + size_hint = self.parent.mode if fixed_size is None: fixed_size = set() if isinstance(value, AstId): diff --git a/miasm2/core/cpu.py b/miasm2/core/cpu.py index 1326d08b..686e12ba 100644 --- a/miasm2/core/cpu.py +++ b/miasm2/core/cpu.py @@ -1036,7 +1036,7 @@ class instruction(object): offset = symbols.get_location_offset(loc_key) if offset is None: raise ValueError( - 'The offset of loc_key "%s" cannot be determined' % name + 'The offset of loc_key "%s" cannot be determined' % names ) else: # Fix symbol with its offset |