]> git.eshelyaron.com Git - emacs.git/commitdiff
(calculate_scrolling): Add explicit casts, to avoid compiler warnings.
authorKarl Heuer <kwzh@gnu.org>
Fri, 15 Apr 1994 01:04:26 +0000 (01:04 +0000)
committerKarl Heuer <kwzh@gnu.org>
Fri, 15 Apr 1994 01:04:26 +0000 (01:04 +0000)
src/scroll.c

index 10da569289452d2ac895636f3a2f40389c40c5d2..944561a07b2d1e52eb5bf801ff38a861fb9f01e0 100644 (file)
@@ -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