forked from pool/openjfx
21 lines
894 B
Diff
21 lines
894 B
Diff
--- jfx/modules/javafx.graphics/src/main/native-font/pango.c 2024-08-28 18:04:53.293373270 +0200
|
|
+++ jfx/modules/javafx.graphics/src/main/native-font/pango.c 2024-08-28 18:19:29.190065141 +0200
|
|
@@ -243,7 +243,7 @@
|
|
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 *)arg0, text);
|
|
}
|
|
(*env)->ReleaseStringUTFChars(env, arg1, text);
|
|
}
|
|
@@ -402,7 +402,7 @@
|
|
(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)pos);
|
|
}
|
|
|
|
JNIEXPORT jlong JNICALL OS_NATIVE(g_1utf16_1to_1utf8)
|