summaryrefslogtreecommitdiff
path: root/src/scroll.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2018-10-07 00:10:29 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2018-10-07 00:11:48 -0700
commit1baf191a484f9942352e37183c66e2471a8cb577 (patch)
tree2eeb8600d3045f867a4d13872737df3e8535de6c /src/scroll.c
parentee3f4698704c26c503064e15ad7a75b7d693b1e4 (diff)
downloademacs-1baf191a484f9942352e37183c66e2471a8cb577.tar.gz
* src/scroll.c (calculate_scrolling): Remove casts.
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 240005b4e32..5d0f32080e7 100644
--- a/src/scroll.c
+++ b/src/scroll.c
@@ -186,13 +186,13 @@ calculate_scrolling (struct frame *frame,
else
{
cost = p1->writecost + first_insert_cost[i];
- if ((int) p1->insertcount > i)
+ if (p1->insertcount > i)
emacs_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 ((int) p->insertcount > i)
+ if (p->insertcount > i)
emacs_abort ();
/* Calculate the cost if we do a delete line after