summaryrefslogtreecommitdiff
path: root/python/architecture.py
diff options
context:
space:
mode:
authorGlenn Smith <glenn@vector35.com>2025-03-06 15:42:40 -0500
committerGlenn Smith <glenn@vector35.com>2025-03-06 17:16:11 -0500
commit8981426467209612612216788736947718079657 (patch)
tree608a495fbfe53535c40ae47e50a9ff98e956265c /python/architecture.py
parentf553aeefa4485bdd15c20a08a6905185d1cf15b9 (diff)
Python: Fix blank flag_write in another place
Diffstat (limited to 'python/architecture.py')
-rw-r--r--python/architecture.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/architecture.py b/python/architecture.py
index 66d3229d..36904096 100644
--- a/python/architecture.py
+++ b/python/architecture.py
@@ -1621,6 +1621,8 @@ class Architecture(metaclass=_ArchitectureMetaClass):
:return: flag write type
:rtype: int
"""
+ if write_type == '':
+ return FlagWriteTypeIndex(0)
return self._flag_write_types[write_type]
def get_semantic_flag_class_by_name(self, sem_class: SemanticClassName) -> SemanticClassIndex: