# HG changeset patch # User Gerd Moellmann # Date 970055031 0 # Node ID 081edde7619700f1dd275c91edf096eeba4fd010 # Parent 85c245edb7d7f188c4f5a1fcee75ab554c0c7457 (adjust_glyph_matrix, enable_glyph_matrix_rows): Add assertions. diff -r 85c245edb7d7 -r 081edde76197 src/dispnew.c --- a/src/dispnew.c Wed Sep 27 11:43:08 2000 +0000 +++ b/src/dispnew.c Wed Sep 27 11:43:51 2000 +0000 @@ -667,6 +667,7 @@ /* Number of rows to be used by MATRIX. */ matrix->nrows = dim.height; + xassert (matrix->nrows >= 0); /* Mark rows in a current matrix of a window as not having valid contents. It's important to not do this for desired matrices. @@ -809,6 +810,10 @@ int start, end; int enabled_p; { + xassert (start <= end); + xassert (start >= 0 && start < matrix->nrows); + xassert (end >= 0 && end <= matrix->nrows); + for (; start < end; ++start) matrix->rows[start].enabled_p = enabled_p != 0; }