From 0631afabdd324493f60b107b94f15849a9844ec7 Mon Sep 17 00:00:00 2001 From: Alexander Taylor Date: Wed, 8 Feb 2023 18:59:54 -0500 Subject: Update `_sdv` when `_type` changes. Fixes #3842. --- python/binaryview.py | 1 + 1 file changed, 1 insertion(+) (limited to 'python') 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']: -- cgit v1.3.1