mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-16 00:00:25 +03:00
Closes: https://bugs.gentoo.org/926331 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
32 lines
1.5 KiB
Diff
32 lines
1.5 KiB
Diff
--- a/modules/javafx.graphics/src/main/native-font/pango.c
|
|
+++ b/modules/javafx.graphics/src/main/native-font/pango.c
|
|
@@ -243,7 +243,7 @@ JNIEXPORT jboolean JNICALL OS_NATIVE(FcConfigAppFontAddFile)
|
|
if (text) {
|
|
// rc = (jboolean)FcConfigAppFontAddFile(arg0, text);
|
|
if (fp) {
|
|
- rc = (jboolean)((jboolean (*)(void *, const char *))fp)(arg0, text);
|
|
+ rc = (jboolean)((jboolean (*)(void *, const char *))fp)((void *)(intptr_t)arg0, text);
|
|
}
|
|
(*env)->ReleaseStringUTFChars(env, arg1, text);
|
|
}
|
|
@@ -402,7 +402,7 @@ JNIEXPORT jlong JNICALL OS_NATIVE(g_1utf8_1strlen)
|
|
(JNIEnv *env, jclass that, jlong str, jlong pos)
|
|
{
|
|
if (!str) return 0;
|
|
- return (jlong)g_utf8_strlen((const gchar *)str, (const gchar *)pos);
|
|
+ return (jlong)g_utf8_strlen((const gchar *)str, (gssize)(const gchar *)pos);
|
|
}
|
|
|
|
JNIEXPORT jlong JNICALL OS_NATIVE(g_1utf16_1to_1utf8)
|
|
--- a/modules/javafx.graphics/src/main/native-prism-es2/x11/X11GLContext.c
|
|
+++ b/modules/javafx.graphics/src/main/native-prism-es2/x11/X11GLContext.c
|
|
@@ -275,7 +275,7 @@ JNIEXPORT jlong JNICALL Java_com_sun_prism_es2_X11GLContext_nInitialize
|
|
dlsym(RTLD_DEFAULT, "glXSwapIntervalSGI");
|
|
|
|
if (ctxInfo->glXSwapIntervalSGI == NULL) {
|
|
- ctxInfo->glXSwapIntervalSGI = glXGetProcAddress("glXSwapIntervalSGI");
|
|
+ ctxInfo->glXSwapIntervalSGI = (PFNGLXSWAPINTERVALSGIPROC)glXGetProcAddress("glXSwapIntervalSGI");
|
|
}
|
|
|
|
}
|