From 1baf191a484f9942352e37183c66e2471a8cb577 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 7 Oct 2018 00:10:29 -0700 Subject: [PATCH] * src/scroll.c (calculate_scrolling): Remove casts. --- src/scroll.c | 4 ++-- 1 file 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 -- 2.39.5