diff options
Diffstat (limited to 'platform/java')
-rw-r--r-- | platform/java/mupdf_native.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/java/mupdf_native.c b/platform/java/mupdf_native.c index 66e63879..f34881f1 100644 --- a/platform/java/mupdf_native.c +++ b/platform/java/mupdf_native.c @@ -654,7 +654,7 @@ static inline jobject to_Annotation(fz_context *ctx, JNIEnv *env, fz_annot *anno if (ctx == NULL || annot == NULL) return NULL; - jannot = (*env)->NewObject(env, cls_Annot, mid_Annot_init, annot); + jannot = (*env)->NewObject(env, cls_Annot, mid_Annot_init, jlong_cast(annot)); if (jannot == NULL) fz_throw_java(ctx, env); |