about summary refs log tree commit diff stats
path: root/miasm/core/cpu.py
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2020-10-09 17:47:00 +0200
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2021-06-08 08:11:01 +0200
commit2a3c5a4f9db4d4d6e6cadbd5886218054efe6261 (patch)
tree8d54a9b3e8a199d578aef71025d16c372c24f6b7 /miasm/core/cpu.py
parent6285271a95f3ec9815728fb808a69bb21b50f770 (diff)
downloadfocaccia-miasm-2a3c5a4f9db4d4d6e6cadbd5886218054efe6261.tar.gz
focaccia-miasm-2a3c5a4f9db4d4d6e6cadbd5886218054efe6261.zip
Symbols are str instead of bytes
Diffstat (limited to 'miasm/core/cpu.py')
-rw-r--r--miasm/core/cpu.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/miasm/core/cpu.py b/miasm/core/cpu.py
index f509c9c9..6c73c4c1 100644
--- a/miasm/core/cpu.py
+++ b/miasm/core/cpu.py
@@ -1025,10 +1025,10 @@ class instruction(object):
                 loc_key = exprloc.loc_key
                 names = loc_db.get_location_names(loc_key)
                 # special symbols
-                if b'$' in names:
+                if '$' in names:
                     fixed_expr[exprloc] = self.get_asm_offset(exprloc)
                     continue
-                if b'_' in names:
+                if '_' in names:
                     fixed_expr[exprloc] = self.get_asm_next_offset(exprloc)
                     continue
                 arg_int = loc_db.get_location_offset(loc_key)