Fix an assertion
* src/dispnew.c (clear_glyph_matrix_rows): Test matrix->nrows == 0 (which implies start == 0) separately.
This commit is contained in:
parent
040e0d6b3b
commit
8be32cf45c
1 changed files with 3 additions and 1 deletions
|
@ -683,7 +683,9 @@ void
|
||||||
clear_glyph_matrix_rows (struct glyph_matrix *matrix, int start, int end)
|
clear_glyph_matrix_rows (struct glyph_matrix *matrix, int start, int end)
|
||||||
{
|
{
|
||||||
eassert (start <= end);
|
eassert (start <= end);
|
||||||
eassert (start >= 0 && start <= matrix->nrows);
|
eassert (start >= 0 && (start < matrix->nrows
|
||||||
|
/* matrix->nrows can be 0 for the initial frame. */
|
||||||
|
|| (matrix->nrows == 0)));
|
||||||
eassert (end >= 0 && end <= matrix->nrows);
|
eassert (end >= 0 && end <= matrix->nrows);
|
||||||
|
|
||||||
for (; start < end; ++start)
|
for (; start < end; ++start)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue