Fix overflow lockup with frames > 255 lines
Backport from master. * src/scroll.c (struct matrix_elt): Change unsigned char fields to int to handle frames with more than 255 lines (Bug#32951). Copyright-paperwork-exempt: yes
This commit is contained in:
parent
14c032d5f8
commit
940ae15604
1 changed files with 3 additions and 3 deletions
|
@ -47,13 +47,13 @@ struct matrix_elt
|
|||
int deletecost;
|
||||
/* Number of inserts so far in this run of inserts,
|
||||
for the cost in insertcost. */
|
||||
unsigned char insertcount;
|
||||
int insertcount;
|
||||
/* Number of deletes so far in this run of deletes,
|
||||
for the cost in deletecost. */
|
||||
unsigned char deletecount;
|
||||
int deletecount;
|
||||
/* Number of writes so far since the last insert
|
||||
or delete for the cost in writecost. */
|
||||
unsigned char writecount;
|
||||
int writecount;
|
||||
};
|
||||
|
||||
static void do_direct_scrolling (struct frame *,
|
||||
|
|
Loading…
Add table
Reference in a new issue