diff options
author | Robin Watts <robin.watts@artifex.com> | 2016-07-12 15:02:34 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2016-07-12 15:11:52 +0100 |
commit | 6a4f5d72134f492492952185dddd3aa140a0f53c (patch) | |
tree | 08e90572ffffd8b205ca211770836f581da729f5 /platform | |
parent | efaf3b16ba0fd074f3e368c457f1915c5acd294a (diff) | |
download | mupdf-6a4f5d72134f492492952185dddd3aa140a0f53c.tar.xz |
Android JNI Annotation fix.
We pass pointers from the JNI layer into the java to be stored
as java longs. When doing this it is VITAL that we cast them
correctly as otherwise the JNI layer on android has problems -
presumably because of alignment in the procedure calling
standard.
I'd missed this in one place. Fixed here.
<log></log>
Diffstat (limited to 'platform')
-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); |