From 0fe4741d0b1c45961648518aaf03aa55f977fb78 Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Fri, 15 Apr 1994 01:04:26 +0000 Subject: (calculate_scrolling): Add explicit casts, to avoid compiler warnings. --- src/scroll.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/scroll.c') diff --git a/src/scroll.c b/src/scroll.c index 10da5692894..944561a07b2 100644 --- a/src/scroll.c +++ b/src/scroll.c @@ -185,13 +185,13 @@ calculate_scrolling (frame, matrix, window_size, lines_below, 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 -- cgit v1.2.1