runtime/typemapping.py
changeset 3830 c7cc292bb82e
parent 3823 a95b5ee1a0ea
child 3832 b4f8fe5e3b0f
--- 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":