]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/scroll.c (calculate_scrolling): Remove casts.
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 7 Oct 2018 07:10:29 +0000 (00:10 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 7 Oct 2018 07:11:48 +0000 (00:11 -0700)
src/scroll.c

index 240005b4e3203cfb3b123e06af63ae071d4dc0bd..5d0f32080e73691e878b7aa6dc77c703f5758225 100644 (file)
@@ -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