Runtime: remove now useless typechecking/convertion
authorEdouard Tisserant <edouard.tisserant@gmail.com>
Thu, 20 Jul 2023 23:20:21 +0200
changeset 3832 b4f8fe5e3b0f
parent 3831 2596dabeea04
child 3833 73a44957c381
Runtime: remove now useless typechecking/convertion
runtime/typemapping.py
--- a/runtime/typemapping.py	Thu Jul 20 22:47:12 2023 +0200
+++ b/runtime/typemapping.py	Thu Jul 20 23:20:21 2023 +0200
@@ -94,10 +94,6 @@
         if c_type is not None and (buffoffset + size) <= buffsize:
             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":
-                value = value.decode()
             buffoffset += size
             res.append(value)
         else: