summaryrefslogtreecommitdiff
path: root/src/scroll.c
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1994-04-15 01:04:26 +0000
committerKarl Heuer <kwzh@gnu.org>1994-04-15 01:04:26 +0000
commitefadda5f3c54a203a814e74929b450049e133adf (patch)
tree1a4a41b54eec6108ce35ab2343fdaae2dcfa5d40 /src/scroll.c
parentce43e4e00ea5e7f0d7d8f96b4b084a4a396a03bc (diff)
downloademacs-efadda5f3c54a203a814e74929b450049e133adf.tar.gz
(calculate_scrolling): Add explicit casts, to avoid compiler warnings.
Diffstat (limited to 'src/scroll.c')
-rw-r--r--src/scroll.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scroll.c b/src/scroll.c
index 10da5692894..944561a07b2 100644
--- a/src/scroll.c
+++ b/src/scroll.c
@@ -185,13 +185,13 @@ calculate_scrolling (frame, matrix, window_size, lines_below,
else
{
cost = p1->writecost + first_insert_cost[i];
- if (p1->insertcount > i)
+ if ((int) p1->insertcount > i)
abort ();
cost1 = p1->insertcost + next_insert_cost[i - p1->insertcount];
}
p->insertcost = min (cost, cost1) + draw_cost[i] + extra_cost;
p->insertcount = (cost < cost1) ? 1 : p1->insertcount + 1;
- if (p->insertcount > i)
+ if ((int) p->insertcount > i)
abort ();
/* Calculate the cost if we do a delete line after