diff options
| author | Karl Heuer | 1994-10-04 16:14:59 +0000 |
|---|---|---|
| committer | Karl Heuer | 1994-10-04 16:14:59 +0000 |
| commit | e9c4fbcd665eab9a4940d0cffbed8323d6e210d3 (patch) | |
| tree | 608e0ada5486defdc6a3bc1d1d32e1d81b81b23c | |
| parent | 1e142fb79d41c2256977a22f0996d20caa121bfd (diff) | |
| download | emacs-e9c4fbcd665eab9a4940d0cffbed8323d6e210d3.tar.gz emacs-e9c4fbcd665eab9a4940d0cffbed8323d6e210d3.zip | |
(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.
| -rw-r--r-- | src/textprop.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/textprop.c b/src/textprop.c index 6f8cb7e39de..acb6d4d30c9 100644 --- a/src/textprop.c +++ b/src/textprop.c | |||
| @@ -609,7 +609,7 @@ past position LIMIT; return LIMIT if nothing is found before LIMIT.") | |||
| 609 | if (! NILP (limit) && !(next->position < XFASTINT (limit))) | 609 | if (! NILP (limit) && !(next->position < XFASTINT (limit))) |
| 610 | return limit; | 610 | return limit; |
| 611 | 611 | ||
| 612 | XFASTINT (pos) = next->position - (STRINGP (object)); | 612 | XSETFASTINT (pos, next->position - (STRINGP (object))); |
| 613 | return pos; | 613 | return pos; |
| 614 | } | 614 | } |
| 615 | 615 | ||
| @@ -623,7 +623,7 @@ property_change_between_p (beg, end) | |||
| 623 | Lisp_Object object, pos; | 623 | Lisp_Object object, pos; |
| 624 | 624 | ||
| 625 | XSETBUFFER (object, current_buffer); | 625 | XSETBUFFER (object, current_buffer); |
| 626 | XFASTINT (pos) = beg; | 626 | XSETFASTINT (pos, beg); |
| 627 | 627 | ||
| 628 | i = validate_interval_range (object, &pos, &pos, soft); | 628 | i = validate_interval_range (object, &pos, &pos, soft); |
| 629 | if (NULL_INTERVAL_P (i)) | 629 | if (NULL_INTERVAL_P (i)) |
| @@ -684,7 +684,7 @@ past position LIMIT; return LIMIT if nothing is found before LIMIT.") | |||
| 684 | if (! NILP (limit) && !(next->position < XFASTINT (limit))) | 684 | if (! NILP (limit) && !(next->position < XFASTINT (limit))) |
| 685 | return limit; | 685 | return limit; |
| 686 | 686 | ||
| 687 | XFASTINT (pos) = next->position - (STRINGP (object)); | 687 | XSETFASTINT (pos, next->position - (STRINGP (object))); |
| 688 | return pos; | 688 | return pos; |
| 689 | } | 689 | } |
| 690 | 690 | ||
| @@ -728,8 +728,8 @@ back past position LIMIT; return LIMIT if nothing is found until LIMIT.") | |||
| 728 | && !(previous->position + LENGTH (previous) > XFASTINT (limit))) | 728 | && !(previous->position + LENGTH (previous) > XFASTINT (limit))) |
| 729 | return limit; | 729 | return limit; |
| 730 | 730 | ||
| 731 | XFASTINT (pos) = (previous->position + LENGTH (previous) | 731 | XSETFASTINT (pos, (previous->position + LENGTH (previous) |
| 732 | - (STRINGP (object))); | 732 | - (STRINGP (object)))); |
| 733 | return pos; | 733 | return pos; |
| 734 | } | 734 | } |
| 735 | 735 | ||
| @@ -778,8 +778,8 @@ back past position LIMIT; return LIMIT if nothing is found until LIMIT.") | |||
| 778 | && !(previous->position + LENGTH (previous) > XFASTINT (limit))) | 778 | && !(previous->position + LENGTH (previous) > XFASTINT (limit))) |
| 779 | return limit; | 779 | return limit; |
| 780 | 780 | ||
| 781 | XFASTINT (pos) = (previous->position + LENGTH (previous) | 781 | XSETFASTINT (pos, (previous->position + LENGTH (previous) |
| 782 | - (STRINGP (object))); | 782 | - (STRINGP (object)))); |
| 783 | return pos; | 783 | return pos; |
| 784 | } | 784 | } |
| 785 | 785 | ||
| @@ -1270,7 +1270,7 @@ copy_text_properties (start, end, src, pos, dest, prop) | |||
| 1270 | Lisp_Object dest_start, dest_end; | 1270 | Lisp_Object dest_start, dest_end; |
| 1271 | 1271 | ||
| 1272 | dest_start = pos; | 1272 | dest_start = pos; |
| 1273 | XFASTINT (dest_end) = XINT (dest_start) + (XINT (end) - XINT (start)); | 1273 | XSETFASTINT (dest_end, XINT (dest_start) + (XINT (end) - XINT (start))); |
| 1274 | /* Apply this to a copy of pos; it will try to increment its arguments, | 1274 | /* Apply this to a copy of pos; it will try to increment its arguments, |
| 1275 | which we don't want. */ | 1275 | which we don't want. */ |
| 1276 | validate_interval_range (dest, &dest_start, &dest_end, soft); | 1276 | validate_interval_range (dest, &dest_start, &dest_end, soft); |