changeset 6888:a39caeb88721

(calculate_scrolling): Add explicit casts, to avoid compiler warnings.
author Karl Heuer <kwzh@gnu.org>
date Fri, 15 Apr 1994 01:04:26 +0000
parents 9888d3b32db3
children 8b9decfed36f
files src/scroll.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/scroll.c	Thu Apr 14 22:49:23 1994 +0000
+++ b/src/scroll.c	Fri Apr 15 01:04:26 1994 +0000
@@ -185,13 +185,13 @@
 	else
 	  {
 	    cost = p1->writecost + first_insert_cost[i];
-	    if (p1->insertcount > i)
+	    if ((int) p1->insertcount > i)
 	      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 (p->insertcount > i)
+	if ((int) p->insertcount > i)
 	  abort ();
 
 	/* Calculate the cost if we do a delete line after