summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorAlexander Taylor <alex@vector35.com>2023-02-08 18:59:54 -0500
committerAlexander Taylor <alex@vector35.com>2023-02-08 19:01:52 -0500
commit0631afabdd324493f60b107b94f15849a9844ec7 (patch)
tree909db52c74bb9650e27b08298ae69e1791f3e08a /python
parent3738692743109088305231270834273092163446 (diff)
Update `_sdv` when `_type` changes.
Fixes #3842.
Diffstat (limited to 'python')
-rw-r--r--python/binaryview.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/python/binaryview.py b/python/binaryview.py
index c2c57cb4..27de05d2 100644
--- a/python/binaryview.py
+++ b/python/binaryview.py
@@ -9188,6 +9188,7 @@ class DataVariable(CoreDataVariable):
_type = value if value is not None else _types.VoidType.create()
assert self.view.define_user_data_var(self.address, _type) is not None, "Unable to set DataVariable's type"
self._type = _type
+ self._sdv = TypedDataAccessor(self.type, self.address, self.view, self.view.endianness)
@property
def symbol(self) -> Optional['_types.CoreSymbol']: