summaryrefslogtreecommitdiff
path: root/src/scroll.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-04-09 20:38:25 +0000
committerRichard M. Stallman <rms@gnu.org>1994-04-09 20:38:25 +0000
commitd02b0cb5fe12e5b3c7d1a77ff76d46b33e48acb2 (patch)
tree693b7f45caddf5f27080cca013254a5419ec7ee4 /src/scroll.c
parent19d36616db0bb9751095da92cd2237d4fec197ee (diff)
downloademacs-d02b0cb5fe12e5b3c7d1a77ff76d46b33e48acb2.tar.gz
(struct matrix_elt): Use int, not short.
Use unsigned char for insertcount and deletecount. (INFINITY): Increase to 1000000.
Diffstat (limited to 'src/scroll.c')
-rw-r--r--src/scroll.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/scroll.c b/src/scroll.c
index 6571a746a08..10da5692894 100644
--- a/src/scroll.c
+++ b/src/scroll.c
@@ -31,27 +31,27 @@ extern struct display_line **ophys_lines;
/* All costs measured in characters.
So no cost can exceed the area of a frame, measured in characters.
- Let's hope this is never more than 15000 characters. */
+ Let's hope this is never more than 1000000 characters. */
-#define INFINITY 15000
+#define INFINITY 1000000
struct matrix_elt
{
/* Cost of outputting through this line
if no insert/delete is done just above it. */
- short writecost;
+ int writecost;
/* Cost of outputting through this line
if an insert is done just above it. */
- short insertcost;
+ int insertcost;
/* Cost of outputting through this line
if a delete is done just above it. */
- short deletecost;
+ int deletecost;
/* Number of inserts so far in this run of inserts,
for the cost in insertcost. */
- char insertcount;
+ unsigned char insertcount;
/* Number of deletes so far in this run of deletes,
for the cost in deletecost. */
- char deletecount;
+ unsigned char deletecount;
};