diff options
author | Scott Corley <scott@scorley.com> | 2018-10-07 00:10:29 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2018-10-07 00:11:48 -0700 |
commit | ee3f4698704c26c503064e15ad7a75b7d693b1e4 (patch) | |
tree | 594bf3c3b27719df1b827073a9d972067cb79cac /src/scroll.c | |
parent | 3cc452327eff056f17637566aaf05a877e61d69a (diff) | |
download | emacs-ee3f4698704c26c503064e15ad7a75b7d693b1e4.tar.gz |
Fix overflow lockup with frames > 255 lines
* 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 a29f2d37f54..240005b4e32 100644 --- a/src/scroll.c +++ b/src/scroll.c @@ -41,13 +41,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 *, |