Mercurial > emacs
comparison src/scroll.c @ 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 | ed16e189b9a5 |
| children | cd81dba38a49 |
comparison
equal
deleted
inserted
replaced
| 6887:9888d3b32db3 | 6888:a39caeb88721 |
|---|---|
| 183 cost1 = p1->insertcost; | 183 cost1 = p1->insertcost; |
| 184 } | 184 } |
| 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 |
| 198 outputting this line. | 198 outputting this line. |
| 199 That is, we update through line i | 199 That is, we update through line i |
