aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2018-10-07 00:10:29 -0700
committerPaul Eggert2018-10-07 00:11:48 -0700
commit1baf191a484f9942352e37183c66e2471a8cb577 (patch)
tree2eeb8600d3045f867a4d13872737df3e8535de6c /src
parentee3f4698704c26c503064e15ad7a75b7d693b1e4 (diff)
downloademacs-1baf191a484f9942352e37183c66e2471a8cb577.tar.gz
emacs-1baf191a484f9942352e37183c66e2471a8cb577.zip
* src/scroll.c (calculate_scrolling): Remove casts.
Diffstat (limited to 'src')
-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,
186 else 186 else
187 { 187 {
188 cost = p1->writecost + first_insert_cost[i]; 188 cost = p1->writecost + first_insert_cost[i];
189 if ((int) p1->insertcount > i) 189 if (p1->insertcount > i)
190 emacs_abort (); 190 emacs_abort ();
191 cost1 = p1->insertcost + next_insert_cost[i - p1->insertcount]; 191 cost1 = p1->insertcost + next_insert_cost[i - p1->insertcount];
192 } 192 }
193 p->insertcost = min (cost, cost1) + draw_cost[i] + extra_cost; 193 p->insertcost = min (cost, cost1) + draw_cost[i] + extra_cost;
194 p->insertcount = (cost < cost1) ? 1 : p1->insertcount + 1; 194 p->insertcount = (cost < cost1) ? 1 : p1->insertcount + 1;
195 if ((int) p->insertcount > i) 195 if (p->insertcount > i)
196 emacs_abort (); 196 emacs_abort ();
197 197
198 /* Calculate the cost if we do a delete line after 198 /* Calculate the cost if we do a delete line after