sixel: verify-no-wraparound-crossover: fix calculation of ‘end’ row

This commit is contained in:
Daniel Eklöf 2020-10-04 13:10:06 +02:00
parent 74c7373efc
commit 0876c7eafe
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -156,7 +156,7 @@ verify_no_wraparound_crossover(const struct terminal *term)
assert(six->pos.row >= 0); assert(six->pos.row >= 0);
assert(six->pos.row < term->grid->num_rows); 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); assert(end >= six->pos.row);
} }
#endif #endif