We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d5d5947 commit 9c88de2Copy full SHA for 9c88de2
tools/libyaz0/yaz0.py
@@ -20,7 +20,7 @@ def decompress(data):
20
return bytearray(decompressedDataBuffer)[:-1]
21
22
def compress(data):
23
- decompresseddDataBuffer = ctypes.c_buffer(data)
+ decompresseddDataBuffer = ctypes.c_buffer(bytes(data))
24
compressedDataBuffer = ctypes.c_buffer(bytes(len(data)*2))
25
encode = _yaz0lib.yaz0_encode
26
encode.argtypes = [ctypes.c_char_p,ctypes.c_char_p,ctypes.c_int]
0 commit comments