about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorGuillaume Valadon <guillaume@valadon.net>2018-06-30 22:53:22 +0200
committerGuillaume Valadon <guillaume@valadon.net>2018-07-01 19:33:52 +0200
commit1cfab97af3dbbf8c00723628d8737ea35567d2c6 (patch)
treedbe451d58dda45be65b36d4d93eb4c2a1f41449c
parentdcf5a00e0c97ba27bfaeee01d8bd25625c7ca940 (diff)
downloadmiasm-1cfab97af3dbbf8c00723628d8737ea35567d2c6.tar.gz
miasm-1cfab97af3dbbf8c00723628d8737ea35567d2c6.zip
Remove incorrect attribute
-rw-r--r--miasm2/arch/mips32/arch.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/miasm2/arch/mips32/arch.py b/miasm2/arch/mips32/arch.py
index 939ce5b0..1502cde4 100644
--- a/miasm2/arch/mips32/arch.py
+++ b/miasm2/arch/mips32/arch.py
@@ -97,8 +97,8 @@ class instruction_mips32(cpu.instruction):
         if self.name in ["J", 'JAL']:
             expr = self.args[0].arg
             addr = (self.offset & (0xFFFFFFFF ^ ((1<< 28)-1))) + expr
-            label = symbol_pool.getby_offset_create(addr)
-            self.args[0] = ExprLoc(label.loc_key, expr.size)
+            loc_key = symbol_pool.getby_offset_create(addr)
+            self.args[0] = ExprLoc(loc_key, expr.size)
             return
 
         ndx = self.get_dst_num()