Skip to content

Commit 424dc72

Browse files
committed
[Python] Fix handling of zero-width types returned by a custom Demangler
1 parent 617c10d commit 424dc72

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python/demangle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ def _demangle(self, ctxt, arch, name, out_type, out_var_name, view):
408408
var_name = types.QualifiedName(var_name)
409409

410410
Demangler._cached_name = var_name._to_core_struct()
411-
if type:
411+
if type is not None:
412412
out_type[0] = core.BNNewTypeReference(type.handle)
413413
else:
414414
out_type[0] = None

0 commit comments

Comments
 (0)