]> code.delx.au - gnu-emacs/commitdiff
(validate_interval_range): Don't use XFASTINT as an lvalue.
authorKarl Heuer <kwzh@gnu.org>
Tue, 4 Oct 1994 17:19:36 +0000 (17:19 +0000)
committerKarl Heuer <kwzh@gnu.org>
Tue, 4 Oct 1994 17:19:36 +0000 (17:19 +0000)
src/textprop.c

index acb6d4d30c91801b1dfd8fecb9630006dcba0a85..19f469875b8e642fd2ded6a8ba883b2525dac837 100644 (file)
@@ -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)