]> git.eshelyaron.com Git - emacs.git/commitdiff
dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window height before
authorKen Raeburn <raeburn@raeburn.org>
Mon, 21 Jan 2002 01:51:27 +0000 (01:51 +0000)
committerKen Raeburn <raeburn@raeburn.org>
Mon, 21 Jan 2002 01:51:27 +0000 (01:51 +0000)
comparison.
(WINDOW_WANTS_HEADER_LINE_P): Likewise.

src/ChangeLog
src/dispextern.h

index 9fe847c8f7644c4e94df9e02d9a731224e958b05..f75e5003a656f5ba2465c3965385dbf6e0f7e72d 100644 (file)
@@ -1,3 +1,9 @@
+2002-01-20  Ken Raeburn  <raeburn@gnu.org>
+
+       * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
+       height before comparison.
+       (WINDOW_WANTS_HEADER_LINE_P): Likewise.
+
 2002-01-20  Jason Rumney  <jasonr@gnu.org>
 
        * w32term.c (w32_system_caret_width): Remove.
index 74726f02559a43f4e84b9437d00324eaf8ab2e5f..83f539c28044e84d1bd358870331de8f45591ce9 100644 (file)
@@ -1117,7 +1117,7 @@ extern struct glyph_row scratch_glyph_row;
       && FRAME_WANTS_MODELINE_P (XFRAME (WINDOW_FRAME ((W))))          \
       && BUFFERP ((W)->buffer)                                         \
       && !NILP (XBUFFER ((W)->buffer)->mode_line_format)               \
-      && (W)->height > 1)
+      && XFASTINT ((W)->height) > 1)
 
 /* Value is non-zero if window W wants a header line.  */
 
@@ -1127,7 +1127,7 @@ extern struct glyph_row scratch_glyph_row;
       && FRAME_WANTS_MODELINE_P (XFRAME (WINDOW_FRAME ((W))))          \
       && BUFFERP ((W)->buffer)                                         \
       && !NILP (XBUFFER ((W)->buffer)->header_line_format)             \
-      && (W)->height > 1 + !NILP (XBUFFER ((W)->buffer)->mode_line_format))
+      && XFASTINT ((W)->height) > 1 + !NILP (XBUFFER ((W)->buffer)->mode_line_format))
 
 \f     
 /***********************************************************************