* indent.c: Integer overflow fixes.
commit3f8236f46ba78f807fa25a2b2db34d10730d51cc
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 4 Sep 2011 17:24:12 +0000 (4 10:24 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 4 Sep 2011 17:24:12 +0000 (4 10:24 -0700)
tree4502619093c6bba8d4497a3b0dfffc0581df7e64
parentbc3200871917d5c54c8c4299a06bf8f8ba2ea02d
* indent.c: Integer overflow fixes.

(position_indentation): Now takes ptrdiff_t, not int.
(Fvertical_motion): Don't wrap around LINES values that don't fit
in 'int'.  Instead, treat them as extreme values.  This is good
enough for windows, which can't have more than INT_MAX lines anyway.
src/ChangeLog
src/indent.c