about summary refs log tree commit diff stats
path: root/miasm2/arch/x86/arch.py
diff options
context:
space:
mode:
Diffstat (limited to 'miasm2/arch/x86/arch.py')
-rw-r--r--miasm2/arch/x86/arch.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/miasm2/arch/x86/arch.py b/miasm2/arch/x86/arch.py
index 300021c1..73c9fc0d 100644
--- a/miasm2/arch/x86/arch.py
+++ b/miasm2/arch/x86/arch.py
@@ -2002,7 +2002,7 @@ class x86_rm_arg(m_arg):
                     sib = None
 
                 # 16 bit cannot have sib
-                if (not sib is None) and admode == 16:
+                if sib is not None and admode == 16:
                     continue
                 rex = modrm >> 8  # 0# XXX HACK REM temporary REX modrm>>8
                 if rex and admode != 64:
@@ -2021,7 +2021,7 @@ class x86_rm_arg(m_arg):
                 if re != p.reg.value:
                     continue
 
-                if sib:
+                if sib is not None:
                     s_scale, s_index, s_base = getmodrm(sib)
                 else:
                     s_scale, s_index, s_base = None, None, None