Runtime: fix unpacking of variable trace data
authorEdouard Tisserant <edouard.tisserant@gmail.com>
Thu, 20 Jul 2023 22:42:39 +0200
changeset 3830 c7cc292bb82e
parent 3829 18aae6235e76
child 3831 2596dabeea04
Runtime: fix unpacking of variable trace data
runtime/typemapping.py
--- 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":