changeset 51853 | ec62d6cab037 |
parent 47216 | 71c04702a3d5 |
child 57515 | 2db64810f4fc |
child 58678 | 9cf78a70fa4f |
--- a/src/java.desktop/unix/native/common/awt/awt_Font.c Mon Sep 24 13:05:59 2018 -0400 +++ b/src/java.desktop/unix/native/common/awt/awt_Font.c Mon Sep 24 19:26:48 2018 +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); }