comparison 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
comparison
equal deleted inserted replaced
9330:28fcacb58a38 9331:bbf226780027
139 if (! (0 <= XINT (*begin) && XINT (*begin) <= XINT (*end) 139 if (! (0 <= XINT (*begin) && XINT (*begin) <= XINT (*end)
140 && XINT (*end) <= s->size)) 140 && XINT (*end) <= s->size))
141 args_out_of_range (*begin, *end); 141 args_out_of_range (*begin, *end);
142 /* User-level Positions in strings start with 0, 142 /* User-level Positions in strings start with 0,
143 but the interval code always wants positions starting with 1. */ 143 but the interval code always wants positions starting with 1. */
144 XFASTINT (*begin) += 1; 144 XSETFASTINT (*begin, XFASTINT (*begin) + 1);
145 if (begin != end) 145 if (begin != end)
146 XFASTINT (*end) += 1; 146 XSETFASTINT (*end, XFASTINT (*end) + 1);
147 i = s->intervals; 147 i = s->intervals;
148 148
149 if (s->size == 0) 149 if (s->size == 0)
150 return NULL_INTERVAL; 150 return NULL_INTERVAL;
151 151