summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2021-11-05 09:02:05 -0400
committerPeter LaFosse <peter@vector35.com>2021-11-05 10:30:12 -0400
commitb825e52d23eca180bbd2602643d4e2d9bc3b2e28 (patch)
treeca6a58a5a0f069e4a25f6556a09f719c3e257875 /python
parent64797d7c23824a991fe6285a6a3bb0dcee2dd495 (diff)
Fix TypedDataReader member accesses
Diffstat (limited to 'python')
-rw-r--r--python/binaryview.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/binaryview.py b/python/binaryview.py
index f049ae28..e44d9559 100644
--- a/python/binaryview.py
+++ b/python/binaryview.py
@@ -8019,7 +8019,7 @@ class TypedDataReader:
assert isinstance(key, str), "Must use string to get member of structure"
m = _type[key]
assert m is not None, f"Member {key} doesn't exist in structure"
- return TypedDataReader(m.type.immutable_copy(), m.offset, self.view, self.endian)
+ return TypedDataReader(m.type.immutable_copy(), self.address + m.offset, self.view, self.endian)
@staticmethod
def int_from_bytes(data:bytes, width:int, sign:bool, endian:Optional[Endianness]=None) -> int: