We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75fdf93 commit f37e0c0Copy full SHA for f37e0c0
example_basic.py
@@ -67,7 +67,8 @@ def bytes(self):
67
68
@bytes.setter
69
def bytes(self, bytes):
70
- self._saved_ref = (c_char * len(bytes)).from_buffer(bytes)
+ self._saved_ref = (c_ubyte * len(bytes))()
71
+ self._saved_ref[:] = bytes
72
self._bytes = cast(self._saved_ref, c_void_p)
73
self.length = len(bytes)
74
tinycc.py
@@ -56,7 +56,7 @@
56
ctypes.c_ushort: 'unsigned short',
57
ctypes.c_double: 'double',
58
ctypes.c_float: 'float',
59
- ctypes.c_longdouble: 'long double',
+ #ctypes.c_longdouble: 'long double', # long double not working in PyPy
60
ctypes.c_bool: '_Bool',
61
ctypes.c_byte: 'char',
62
ctypes.c_ubyte: 'unsigned char',
0 commit comments