beremiz

Runtime: fix unpacking of variable trace data

2023-07-20, Edouard Tisserant
c7cc292bb82e
Parents 18aae6235e76
Children 2596dabeea04
Runtime: fix unpacking of variable trace data
--- a/runtime/typemapping.py Thu Jul 20 22:05:31 2023 +0200
+++ b/runtime/typemapping.py Thu Jul 20 22:42:39 2023 +0200
@@ -92,8 +92,8 @@
size = sizeof(c_type)
if c_type is not None and (buffoffset + size) <= buffsize:
- n = cast(cursor, POINTER(c_type))
- value = unpack_func(n)
+ ptr = cast(cursor, POINTER(c_type))
+ value = unpack_func(ptr.contents)
if iectype not in ["BOOL", "DATE", "DT", "STRING", "TIME", "TOD"]:
value = value.value
elif iectype == "STRING":