mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
[Bug] Fixed a type error on x86_64 platform (Mac OS)
This commit is contained in:
parent
3da9db9ab9
commit
e7c2c28e6f
@ -129,7 +129,7 @@ class PrivBookInfo(ctypes.Structure):
|
||||
def BambookConnect(ip = DEFAULT_BAMBOOK_IP, timeout = 0):
|
||||
if isinstance(ip, unicode):
|
||||
ip = ip.encode('ascii')
|
||||
handle = ctypes.c_int(0)
|
||||
handle = ctypes.c_void_p(0)
|
||||
if lib_handle == None:
|
||||
raise Exception(_('Bambook SDK has not been installed.'))
|
||||
ret = lib_handle.BambookConnect(ip, timeout, ctypes.byref(handle))
|
||||
|
Loading…
x
Reference in New Issue
Block a user