diff --git a/src/textprop.c b/src/textprop.c index acb6d4d30c9..19f469875b8 100644 --- a/src/textprop.c +++ b/src/textprop.c @@ -141,9 +141,9 @@ validate_interval_range (object, begin, end, force) 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)