diff options
| author | Scott Corley | 2018-10-07 23:21:40 -0700 |
|---|---|---|
| committer | Paul Eggert | 2018-10-07 23:22:50 -0700 |
| commit | 940ae156043c27101759c1577697d3a09d5bc948 (patch) | |
| tree | 9dc79fd3ab6bdba58984226bef9f4d92e07532b3 /src/scroll.c | |
| parent | 14c032d5f8d4ccb608cc906db34ddf17ce465449 (diff) | |
| download | emacs-940ae156043c27101759c1577697d3a09d5bc948.tar.gz emacs-940ae156043c27101759c1577697d3a09d5bc948.zip | |
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
Diffstat (limited to 'src/scroll.c')
| -rw-r--r-- | src/scroll.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/scroll.c b/src/scroll.c index 8a53f9614f7..7751a0885a1 100644 --- a/src/scroll.c +++ b/src/scroll.c | |||
| @@ -47,13 +47,13 @@ struct matrix_elt | |||
| 47 | int deletecost; | 47 | int deletecost; |
| 48 | /* Number of inserts so far in this run of inserts, | 48 | /* Number of inserts so far in this run of inserts, |
| 49 | for the cost in insertcost. */ | 49 | for the cost in insertcost. */ |
| 50 | unsigned char insertcount; | 50 | int insertcount; |
| 51 | /* Number of deletes so far in this run of deletes, | 51 | /* Number of deletes so far in this run of deletes, |
| 52 | for the cost in deletecost. */ | 52 | for the cost in deletecost. */ |
| 53 | unsigned char deletecount; | 53 | int deletecount; |
| 54 | /* Number of writes so far since the last insert | 54 | /* Number of writes so far since the last insert |
| 55 | or delete for the cost in writecost. */ | 55 | or delete for the cost in writecost. */ |
| 56 | unsigned char writecount; | 56 | int writecount; |
| 57 | }; | 57 | }; |
| 58 | 58 | ||
| 59 | static void do_direct_scrolling (struct frame *, | 59 | static void do_direct_scrolling (struct frame *, |