1
0
mirror of synced 2024-11-24 06:20:12 +01:00

Fix missing ctypes definition for compression in Lz77 module.

This commit is contained in:
Jennifer Taylor 2021-05-16 00:19:20 +00:00
parent f74dd8c136
commit 68feebc78e

View File

@ -13,6 +13,8 @@ try:
clib = ctypes.cdll.LoadLibrary(os.path.join(clib_path, files[0])) clib = ctypes.cdll.LoadLibrary(os.path.join(clib_path, files[0]))
clib.decompress.argtypes = (ctypes.c_char_p, ctypes.c_int, ctypes.c_char_p, ctypes.c_int) clib.decompress.argtypes = (ctypes.c_char_p, ctypes.c_int, ctypes.c_char_p, ctypes.c_int)
clib.decompress.restype = ctypes.c_int clib.decompress.restype = ctypes.c_int
clib.compress.argtypes = (ctypes.c_char_p, ctypes.c_int, ctypes.c_char_p, ctypes.c_int)
clib.compress.restype = ctypes.c_int
except Exception: except Exception:
clib = None clib = None