[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 1baf191 2/2: * src/scroll.c (calculate_scrolling):
From: |
Paul Eggert |
Subject: |
[Emacs-diffs] master 1baf191 2/2: * src/scroll.c (calculate_scrolling): Remove casts. |
Date: |
Sun, 7 Oct 2018 03:11:55 -0400 (EDT) |
branch: master
commit 1baf191a484f9942352e37183c66e2471a8cb577
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>
* 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 240005b..5d0f320 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