From a45ba1737edc9822f3b33892459925227e148782 Mon Sep 17 00:00:00 2001 From: Mathieu Virbel Date: Thu, 22 May 2014 17:54:51 +0200 Subject: [PATCH] fix issue with "cannot allocate an array of constant size 0" on Windows / MSVC compiler --- jnius/jnius_export_class.pxi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jnius/jnius_export_class.pxi b/jnius/jnius_export_class.pxi index 0e321d9..7638ab5 100644 --- a/jnius/jnius_export_class.pxi +++ b/jnius/jnius_export_class.pxi @@ -73,7 +73,7 @@ class MetaJavaClass(type): with nogil: classLoader = j_env[0].CallStaticObjectMethodA( - j_env, baseclass, getClassLoader, []) + j_env, baseclass, getClassLoader, NULL) jargs = malloc(sizeof(jobject) * 2) jargs[0] = classLoader jargs[1] = interfaces