about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorWilliam Bruneau <william.bruneau@epfedu.fr>2019-10-16 11:00:40 +0200
committerWilliam Bruneau <william.bruneau@epfedu.fr>2019-10-16 11:00:40 +0200
commit18353d5cb0a0019cb320560257e836f4c5f9588c (patch)
treef47319d5dd546a7e45380288131f49806b1a713c
parent73c4cacc11be085f144c4e1138358f280efd08c3 (diff)
downloadmiasm-18353d5cb0a0019cb320560257e836f4c5f9588c.tar.gz
miasm-18353d5cb0a0019cb320560257e836f4c5f9588c.zip
Avoid deprecation warning
Diffstat (limited to '')
-rw-r--r--miasm/arch/x86/sem.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/miasm/arch/x86/sem.py b/miasm/arch/x86/sem.py
index 370370e4..b00d2cdd 100644
--- a/miasm/arch/x86/sem.py
+++ b/miasm/arch/x86/sem.py
@@ -1400,7 +1400,7 @@ def call(ir, instr, dst):
             m2 = base.zeroExtend(meip.size)
         elif dst.op == "far":
             # Far call far [eax]
-            addr = dst.args[0].arg
+            addr = dst.args[0].ptr
             m1 = ir.ExprMem(addr, CS.size)
             m2 = ir.ExprMem(addr + m2_expr.ExprInt(2, addr.size), meip.size)
         else:
@@ -1528,7 +1528,7 @@ def jmp(ir, instr, dst):
             m2 = base.zeroExtend(meip.size)
         elif dst.op == "far":
             # Far jmp far [eax]
-            addr = dst.args[0].arg
+            addr = dst.args[0].ptr
             m1 = ir.ExprMem(addr, CS.size)
             m2 = ir.ExprMem(addr + m2_expr.ExprInt(2, addr.size), meip.size)
         else: