From: Ken Raeburn Date: Mon, 21 Jan 2002 01:51:27 +0000 (+0000) Subject: dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window height before X-Git-Tag: ttn-vms-21-2-B4~17045 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d7b8ee68fd42eb76c1406626dbd2257f56dbca1c;p=emacs.git dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window height before comparison. (WINDOW_WANTS_HEADER_LINE_P): Likewise. --- diff --git a/src/ChangeLog b/src/ChangeLog index 9fe847c8f76..f75e5003a65 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2002-01-20 Ken Raeburn + + * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window + height before comparison. + (WINDOW_WANTS_HEADER_LINE_P): Likewise. + 2002-01-20 Jason Rumney * w32term.c (w32_system_caret_width): Remove. diff --git a/src/dispextern.h b/src/dispextern.h index 74726f02559..83f539c2804 100644 --- a/src/dispextern.h +++ b/src/dispextern.h @@ -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)) /***********************************************************************