From 8e1dbdaadba08c7c4be6408315d668decb7bc5d4 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Tue, 17 Jun 2025 14:51:56 -0400 Subject: Python: Fix MLIL add_label_map --- python/mediumlevelil.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python') diff --git a/python/mediumlevelil.py b/python/mediumlevelil.py index 173ec694..95cc72ab 100644 --- a/python/mediumlevelil.py +++ b/python/mediumlevelil.py @@ -5292,8 +5292,8 @@ class MediumLevelILFunction: :return: the label list expression :rtype: ExpressionIndex """ - label_list = (ctypes.POINTER(core.BNMediumLevelILLabel) * len(labels))() # type: ignore - value_list = (ctypes.POINTER(ctypes.c_ulonglong) * len(labels))() # type: ignore + label_list = (ctypes.POINTER(core.BNMediumLevelILLabel) * len(labels))() + value_list = (ctypes.c_ulonglong * len(labels))() for i, (key, value) in enumerate(labels.items()): value_list[i] = key label_list[i] = value.handle -- cgit v1.3.1