]> git.eshelyaron.com Git - emacs.git/commit
Simplify validate_interval_range and callers
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 12 Dec 2018 17:54:42 +0000 (09:54 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 12 Dec 2018 17:55:38 +0000 (09:55 -0800)
commit8a247f6059066636fbb60e79f6a9580ee9a81495
treed149637a6ca2ddaca1d596dbfddefb6402c9ed3c
parent23e9e8abaab6f0c90412fc5fae08e5995a26d84c
Simplify validate_interval_range and callers

* src/textprop.c (validate_interval_range):
Remove useless code.  Fix comment to match current behavior.
(set_text_properties, copy_text_properties): Simplify, as
validate_interval_range has not incremented START or END for
quite some time.
(copy_text_properties): Assume C99.  Fix an unlikely
integer overflow bug if WIDE_EMACS_INT.
src/textprop.c