Skip to content

Commit 9c88de2

Browse files
committed
fix yaz0.py
1 parent d5d5947 commit 9c88de2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/libyaz0/yaz0.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def decompress(data):
2020
return bytearray(decompressedDataBuffer)[:-1]
2121

2222
def compress(data):
23-
decompresseddDataBuffer = ctypes.c_buffer(data)
23+
decompresseddDataBuffer = ctypes.c_buffer(bytes(data))
2424
compressedDataBuffer = ctypes.c_buffer(bytes(len(data)*2))
2525
encode = _yaz0lib.yaz0_encode
2626
encode.argtypes = [ctypes.c_char_p,ctypes.c_char_p,ctypes.c_int]

0 commit comments

Comments
 (0)