fix issue with "cannot allocate an array of constant size 0" on Windows / MSVC compiler

This commit is contained in:
Mathieu Virbel 2014-05-22 17:54:51 +02:00
parent 19d4ddc45d
commit a45ba1737e
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ class MetaJavaClass(type):
with nogil:
classLoader = j_env[0].CallStaticObjectMethodA(
j_env, baseclass, getClassLoader, [])
j_env, baseclass, getClassLoader, NULL)
jargs = <jobject *>malloc(sizeof(jobject) * 2)
jargs[0] = <jobject *>classLoader
jargs[1] = interfaces