From 330e7312a3b61dc3bb7b9c970e649151ed799a23 Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Tue, 4 Oct 1994 17:19:36 +0000 Subject: [PATCH] (validate_interval_range): Don't use XFASTINT as an lvalue. --- src/textprop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/textprop.c b/src/textprop.c index acb6d4d30c..19f469875b 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) -- 2.39.2