aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1994-10-04 17:19:36 +0000
committerKarl Heuer1994-10-04 17:19:36 +0000
commit330e7312a3b61dc3bb7b9c970e649151ed799a23 (patch)
treeeccbfcd6ee342754d7f3ce8ec0780389907b492c /src
parente8e536a9968182f5ee37eb4a5621ab7a520dc24e (diff)
downloademacs-330e7312a3b61dc3bb7b9c970e649151ed799a23.tar.gz
emacs-330e7312a3b61dc3bb7b9c970e649151ed799a23.zip
(validate_interval_range): Don't use XFASTINT as an lvalue.
Diffstat (limited to 'src')
-rw-r--r--src/textprop.c4
1 files changed, 2 insertions, 2 deletions
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)
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)