mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-29 16:43:16 +02:00
[Bug] Fixed a type error on x86_64 platform (Mac OS)
This commit is contained in:
parent
3da9db9ab9
commit
e7c2c28e6f
1 changed files with 1 additions and 1 deletions
|
|
@ -129,7 +129,7 @@ def __init__(self):
|
|||
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…
Reference in a new issue