diff options
| author | Peter LaFosse <peter@vector35.com> | 2021-11-23 08:54:15 -0500 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2021-11-29 09:25:27 -0500 |
| commit | c726809eca66a2568b32b73b242de64c1fe58a5a (patch) | |
| tree | c7c86b578df0a73ca750576cc7d315d50d7b71b1 /python | |
| parent | 9700dad7db37f5898afbbea82ba2fbf465217bf6 (diff) | |
Fix type hint in TagList.__init__
Diffstat (limited to 'python')
| -rw-r--r-- | python/function.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/python/function.py b/python/function.py index 152450e8..30ff6ef6 100644 --- a/python/function.py +++ b/python/function.py @@ -258,8 +258,9 @@ class HighLevelILBasicBlockList(BasicBlockList): class TagList: def __init__(self, function:'Function'): self._count = ctypes.c_ulonglong() - self._tags = core.BNGetAddressTagReferences(function.handle, self._count) - assert self._tags is not None, "core.BNGetAddressTagReferences returned None" + tags = core.BNGetAddressTagReferences(function.handle, self._count) + assert tags is not None, "core.BNGetAddressTagReferences returned None" + self._tags = tags self._function = function self._n = 0 |
