summaryrefslogtreecommitdiff
path: root/python/types.py
diff options
context:
space:
mode:
authorRusty Wagner <rusty@vector35.com>2020-02-07 12:45:54 -0500
committerRusty Wagner <rusty@vector35.com>2020-02-07 12:46:38 -0500
commit815dad9ee1e3c35fbb09699f32ac32bb03f07522 (patch)
treec3c25f2571c35a9839ecc3eadb2929a82b6ff5da /python/types.py
parent225c1d594bc4b11306dd10694800ed0533c8ea5b (diff)
Fix struct display in MLIL
Diffstat (limited to 'python/types.py')
-rw-r--r--python/types.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/types.py b/python/types.py
index 8b883e6b..bd251e0d 100644
--- a/python/types.py
+++ b/python/types.py
@@ -593,7 +593,7 @@ class Type(object):
if self._mutable:
return core.BNGetTypeBuilderString(self._handle, platform)
name = self.registered_name
- if name is not None:
+ if (name is not None) and (self.type_class != TypeClass.StructureTypeClass) and (self.type_class != TypeClass.EnumerationTypeClass):
return self.get_string_before_name() + " " + str(name.name) + self.get_string_after_name()
return core.BNGetTypeString(self._handle, platform)