[java-atk-wrapper] Fix 32bit builds
- From: Samuel Thibault <sthibaul src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [java-atk-wrapper] Fix 32bit builds
- Date: Mon, 5 Aug 2019 11:46:59 +0000 (UTC)
commit 3b01017e6e3befff22b73b003704433f38dc84fe
Author: Samuel Thibault <samuel thibault ens-lyon org>
Date: Mon Aug 5 13:46:52 2019 +0200
Fix 32bit builds
jni/src/AtkWrapper.c | 3 ++-
jni/src/jawimpl.c | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/jni/src/AtkWrapper.c b/jni/src/AtkWrapper.c
index f6c5342..35ed884 100644
--- a/jni/src/AtkWrapper.c
+++ b/jni/src/AtkWrapper.c
@@ -21,6 +21,7 @@
#include <jni.h>
#include <stdio.h>
#include <stdlib.h>
+#include <stdint.h>
#include <glib.h>
#include <atk-bridge.h>
#include <X11/Xlib.h>
@@ -1227,7 +1228,7 @@ JNICALL Java_org_GNOME_Accessibility_AtkWrapper_getInstance(JNIEnv *jniEnv,
if (!ac)
return 0;
- return (jlong) jaw_impl_get_instance(jniEnv, ac);
+ return (jlong) (uintptr_t) jaw_impl_get_instance(jniEnv, ac);
}
#ifdef __cplusplus
diff --git a/jni/src/jawimpl.c b/jni/src/jawimpl.c
index a9dbec7..145b269 100644
--- a/jni/src/jawimpl.c
+++ b/jni/src/jawimpl.c
@@ -20,6 +20,7 @@
#include <stdlib.h>
#include <stdio.h>
+#include <stdint.h>
#include <glib.h>
#include <glib-object.h>
#include <glib/gprintf.h>
@@ -331,7 +332,7 @@ jaw_impl_get_instance_from_jaw (JNIEnv *jniEnv, jobject ac)
jclass classWrapper = (*jniEnv)->FindClass(jniEnv, "org/GNOME/Accessibility/AtkWrapper");
jmethodID jmid = (*jniEnv)->GetStaticMethodID(jniEnv, classWrapper, "getInstanceFromSwing",
"(Ljavax/accessibility/AccessibleContext;)J");
jlong ptr = (*jniEnv)->CallStaticLongMethod(jniEnv, classWrapper, jmid, ac);
- return (JawImpl*) ptr;
+ return (JawImpl*) (uintptr_t) ptr;
}
JawImpl*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]