mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
sixel: verify-no-wraparound-crossover: fix calculation of ‘end’ row
This commit is contained in:
parent
74c7373efc
commit
0876c7eafe
1 changed files with 1 additions and 1 deletions
2
sixel.c
2
sixel.c
|
|
@ -156,7 +156,7 @@ verify_no_wraparound_crossover(const struct terminal *term)
|
|||
assert(six->pos.row >= 0);
|
||||
assert(six->pos.row < term->grid->num_rows);
|
||||
|
||||
int end = (six->pos.row + six->rows) & (term->grid->num_rows - 1);
|
||||
int end = (six->pos.row + six->rows - 1) & (term->grid->num_rows - 1);
|
||||
assert(end >= six->pos.row);
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue