targets/typemapping.py
changeset 1747 6046ffa2280f
parent 1742 92932cd370a4
child 1748 ba5f64fe0e00
--- a/targets/typemapping.py	Wed Aug 16 12:03:46 2017 +0300
+++ b/targets/typemapping.py	Wed Aug 16 12:21:05 2017 +0300
@@ -102,8 +102,8 @@
             TypeTranslator.get(iectype,
                                     (None, None, None))
         if c_type is not None and buffoffset < buffsize:
-            cursor = c_void_p( buffptr + buffoffset)
-            value = unpack_func( cast(cursor,
+            cursor = c_void_p(buffptr + buffoffset)
+            value = unpack_func(cast(cursor,
                          POINTER(c_type)).contents)
             buffoffset += sizeof(c_type) if iectype != "STRING" else len(value)+1
             res.append(value)