Mercurial > emacs
diff src/textprop.c @ 9331:bbf226780027
(validate_interval_range): Don't use XFASTINT as an lvalue.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Tue, 04 Oct 1994 17:19:36 +0000 |
parents | e6759002383c |
children | 449e024f13be |
line wrap: on
line diff
--- a/src/textprop.c Tue Oct 04 17:10:36 1994 +0000 +++ b/src/textprop.c Tue Oct 04 17:19:36 1994 +0000 @@ -141,9 +141,9 @@ args_out_of_range (*begin, *end); /* User-level Positions in strings start with 0, but the interval code always wants positions starting with 1. */ - XFASTINT (*begin) += 1; + XSETFASTINT (*begin, XFASTINT (*begin) + 1); if (begin != end) - XFASTINT (*end) += 1; + XSETFASTINT (*end, XFASTINT (*end) + 1); i = s->intervals; if (s->size == 0)