Sophie

Sophie

distrib > Mageia > 9 > armv7hl > media > core-release-src > by-pkgid > 5780ff33fcb3d6057d3fbcd6fc9c8f0c > files > 13

openjfx8-8.0.202-35.b07.3.mga9.src.rpm

8307542: Call to FcConfigAppFontAddFile uses wrong prototype, arguments

Submitted upstream: <https://github.com/openjdk/jfx/pull/1128>

diff --git a/modules/graphics/src/main/native-font/pango.c b/modules/graphics/src/main/native-font/pango.c
index 807c801d0e9e71be..fce02106b568874f 100644
--- a/modules/graphics/src/main/native-font/pango.c
+++ b/modules/graphics/src/main/native-font/pango.c
@@ -225,7 +225,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)((int (*)(void *, const char *))fp)((void *)arg0, text);
             }
             (*env)->ReleaseStringUTFChars(env, arg1, text);
         }