--- old/src/java.desktop/unix/native/common/awt/awt_Font.c 2018-09-24 09:46:35.534834448 +0200 +++ new/src/java.desktop/unix/native/common/awt/awt_Font.c 2018-09-24 09:46:35.202834451 +0200 @@ -638,7 +638,7 @@ /* XXX: sometimes XLoadQueryFont returns a bogus font structure */ /* with negative ascent. */ - if (xfont == (Font) NULL || xfont->ascent < 0) { + if (xfont == NULL || xfont->ascent < 0) { if (xfont != NULL) { XFreeFont(display, xfont); }