]> git.eshelyaron.com Git - emacs.git/commitdiff
(intern_face): Cast FONT_DEFAULT to (XFontStruct *)
authorRichard M. Stallman <rms@gnu.org>
Fri, 7 Apr 1995 03:59:57 +0000 (03:59 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 7 Apr 1995 03:59:57 +0000 (03:59 +0000)
for comparison with face->font.

src/xfaces.c

index 5fe6d2092c5c6f1b7750b9f34026bc8bf7dbf3d8..545a928c16c0d6a2adf05a50e6eed272f465aeb5 100644 (file)
@@ -238,7 +238,7 @@ intern_face (f, face)
   else
     xgcv.background = f->display.x->background_pixel;
 
-  if (face->font && (int) face->font != FACE_DEFAULT)
+  if (face->font && face->font != (XFontStruct *) FACE_DEFAULT)
     xgcv.font = face->font->fid;
   else
     xgcv.font = f->display.x->font->fid;