about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorserpilliere <serpilliere@users.noreply.github.com>2019-10-16 16:01:38 +0200
committerGitHub <noreply@github.com>2019-10-16 16:01:38 +0200
commitf4d1a266cc16e003903ed7fb7ed7914c14549d17 (patch)
treef47319d5dd546a7e45380288131f49806b1a713c
parent73c4cacc11be085f144c4e1138358f280efd08c3 (diff)
parent18353d5cb0a0019cb320560257e836f4c5f9588c (diff)
downloadmiasm-f4d1a266cc16e003903ed7fb7ed7914c14549d17.tar.gz
miasm-f4d1a266cc16e003903ed7fb7ed7914c14549d17.zip
Merge pull request #1074 from WilliamBruneau/avoid_depreciation_warning
Avoid deprecation warning
-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: