# HG changeset patch # User Karl Heuer # Date 781287299 0 # Node ID e6759002383ceb7ed773091be390ea1abcc0984a # Parent 4be3f8f9f0900132d308ca561db1f87cb0bf9d90 (Fnext_property_change, property_change_between_p, Fnext_single_property_change, Fprevious_property_change, Fprevious_single_property_change, copy_text_properties): Don't use XFASTINT as an lvalue. diff -r 4be3f8f9f090 -r e6759002383c src/textprop.c --- a/src/textprop.c Tue Oct 04 16:13:34 1994 +0000 +++ b/src/textprop.c Tue Oct 04 16:14:59 1994 +0000 @@ -609,7 +609,7 @@ if (! NILP (limit) && !(next->position < XFASTINT (limit))) return limit; - XFASTINT (pos) = next->position - (STRINGP (object)); + XSETFASTINT (pos, next->position - (STRINGP (object))); return pos; } @@ -623,7 +623,7 @@ Lisp_Object object, pos; XSETBUFFER (object, current_buffer); - XFASTINT (pos) = beg; + XSETFASTINT (pos, beg); i = validate_interval_range (object, &pos, &pos, soft); if (NULL_INTERVAL_P (i)) @@ -684,7 +684,7 @@ if (! NILP (limit) && !(next->position < XFASTINT (limit))) return limit; - XFASTINT (pos) = next->position - (STRINGP (object)); + XSETFASTINT (pos, next->position - (STRINGP (object))); return pos; } @@ -728,8 +728,8 @@ && !(previous->position + LENGTH (previous) > XFASTINT (limit))) return limit; - XFASTINT (pos) = (previous->position + LENGTH (previous) - - (STRINGP (object))); + XSETFASTINT (pos, (previous->position + LENGTH (previous) + - (STRINGP (object)))); return pos; } @@ -778,8 +778,8 @@ && !(previous->position + LENGTH (previous) > XFASTINT (limit))) return limit; - XFASTINT (pos) = (previous->position + LENGTH (previous) - - (STRINGP (object))); + XSETFASTINT (pos, (previous->position + LENGTH (previous) + - (STRINGP (object)))); return pos; } @@ -1270,7 +1270,7 @@ Lisp_Object dest_start, dest_end; dest_start = pos; - XFASTINT (dest_end) = XINT (dest_start) + (XINT (end) - XINT (start)); + XSETFASTINT (dest_end, XINT (dest_start) + (XINT (end) - XINT (start))); /* Apply this to a copy of pos; it will try to increment its arguments, which we don't want. */ validate_interval_range (dest, &dest_start, &dest_end, soft);