From: Paul Eggert Date: Sun, 7 Oct 2018 07:10:29 +0000 (-0700) Subject: * src/scroll.c (calculate_scrolling): Remove casts. X-Git-Tag: emacs-27.0.90~4331 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1baf191a484f9942352e37183c66e2471a8cb577;p=emacs.git * src/scroll.c (calculate_scrolling): Remove casts. --- 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