diff options
author | Eli Zaretskii <eliz@gnu.org> | 2011-11-30 07:25:09 -0500 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2011-11-30 07:25:09 -0500 |
commit | 801a431304543436accd7088de953dbb5fc15838 (patch) | |
tree | 4507a4529d46f1f6ceb08cd3d43eb6af74e970cf /src/dispnew.c | |
parent | e7308292aaa7f16a5670a151b6112239691ea61f (diff) | |
download | emacs-801a431304543436accd7088de953dbb5fc15838.tar.gz |
Fix bug #10164 with assertion violations in linum-mode.
src/dispnew.c (adjust_glyph_matrix) [XASSERTS]: Ensure ROW's
attributes are tested _before_ calling verify_row_hash, to protect
against GCC re-ordering of the tests.
Diffstat (limited to 'src/dispnew.c')
-rw-r--r-- | src/dispnew.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/dispnew.c b/src/dispnew.c index c9e4ec5c20e..7e591aa8e8f 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -608,9 +608,10 @@ adjust_glyph_matrix (struct window *w, struct glyph_matrix *matrix, int x, int y row->glyphs[LAST_AREA] = row->glyphs[LEFT_MARGIN_AREA] + dim.width; } - xassert (!row->enabled_p - || row->mode_line_p - || verify_row_hash (row)); +#if XASSERTS + if (row->enabled_p && !row->mode_line_p) + verify_row_hash (row)); +#endif ++row; } } |