[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-26 940ae15: Fix overflow lockup with frames > 255 li
From: |
Paul Eggert |
Subject: |
[Emacs-diffs] emacs-26 940ae15: Fix overflow lockup with frames > 255 lines |
Date: |
Mon, 8 Oct 2018 02:22:55 -0400 (EDT) |
branch: emacs-26
commit 940ae156043c27101759c1577697d3a09d5bc948
Author: Scott Corley <address@hidden>
Commit: Paul Eggert <address@hidden>
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
---
src/scroll.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/scroll.c b/src/scroll.c
index 8a53f96..7751a08 100644
--- a/src/scroll.c
+++ b/src/scroll.c
@@ -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 *,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs-26 940ae15: Fix overflow lockup with frames > 255 lines,
Paul Eggert <=