about summary refs log tree commit diff stats
path: root/miasm2/arch/x86/arch.py
diff options
context:
space:
mode:
authorCamille Mougey <commial@gmail.com>2018-07-18 19:04:06 +0200
committerGitHub <noreply@github.com>2018-07-18 19:04:06 +0200
commit63edfb9952969263f284b236678fbf93f81e6ac0 (patch)
tree43d5a897a95b1429bd9382d6ff689ce14ac234c7 /miasm2/arch/x86/arch.py
parentb531a52db0a966f0882e386e164a349ae581f956 (diff)
parent3b146b53c4b6ec12806b670eb215bb44482642e1 (diff)
downloadmiasm-63edfb9952969263f284b236678fbf93f81e6ac0.tar.gz
miasm-63edfb9952969263f284b236678fbf93f81e6ac0.zip
Merge pull request #802 from serpilliere/fix_x86_asm_64
X86: fix 64 bit asm
Diffstat (limited to 'miasm2/arch/x86/arch.py')
-rw-r--r--miasm2/arch/x86/arch.py2
1 files changed, 1 insertions, 1 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):