diff options
| author | Karl Heuer | 1994-04-15 01:04:26 +0000 |
|---|---|---|
| committer | Karl Heuer | 1994-04-15 01:04:26 +0000 |
| commit | 0fe4741d0b1c45961648518aaf03aa55f977fb78 (patch) | |
| tree | a8b694a9f340a53d4ca1be5b89d2adad4d1e93b7 /src/scroll.c | |
| parent | 5109bfb09faa1685df0db60c7d2568d1d2fa9355 (diff) | |
| download | emacs-0fe4741d0b1c45961648518aaf03aa55f977fb78.tar.gz emacs-0fe4741d0b1c45961648518aaf03aa55f977fb78.zip | |
(calculate_scrolling): Add explicit casts, to avoid compiler warnings.
Diffstat (limited to 'src/scroll.c')
| -rw-r--r-- | src/scroll.c | 4 |
1 files changed, 2 insertions, 2 deletions
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, | |||
| 185 | else | 185 | else |
| 186 | { | 186 | { |
| 187 | cost = p1->writecost + first_insert_cost[i]; | 187 | cost = p1->writecost + first_insert_cost[i]; |
| 188 | if (p1->insertcount > i) | 188 | if ((int) p1->insertcount > i) |
| 189 | abort (); | 189 | abort (); |
| 190 | cost1 = p1->insertcost + next_insert_cost[i - p1->insertcount]; | 190 | cost1 = p1->insertcost + next_insert_cost[i - p1->insertcount]; |
| 191 | } | 191 | } |
| 192 | p->insertcost = min (cost, cost1) + draw_cost[i] + extra_cost; | 192 | p->insertcost = min (cost, cost1) + draw_cost[i] + extra_cost; |
| 193 | p->insertcount = (cost < cost1) ? 1 : p1->insertcount + 1; | 193 | p->insertcount = (cost < cost1) ? 1 : p1->insertcount + 1; |
| 194 | if (p->insertcount > i) | 194 | if ((int) p->insertcount > i) |
| 195 | abort (); | 195 | abort (); |
| 196 | 196 | ||
| 197 | /* Calculate the cost if we do a delete line after | 197 | /* Calculate the cost if we do a delete line after |