Fixed issue #279 which causes callbacks to fail in Windows 64 bit

This commit is contained in:
madhawav 2017-08-11 23:12:56 +05:30
parent 5fe9763353
commit 19b8a0bfcf
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ cdef create_proxy_instance(JNIEnv *j_env, py_obj, j_interfaces, javacontext):
# convert strings to Class
j_interfaces = [find_javaclass(x) for x in j_interfaces]
cdef JavaClass nih = NativeInvocationHandler(<long><void *>py_obj)
cdef JavaClass nih = NativeInvocationHandler(<long long><void *>py_obj)
cdef JNINativeMethod invoke_methods[1]
invoke_methods[0].name = 'invoke0'
invoke_methods[0].signature = '(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;'