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); }