diff options
| author | Ken Raeburn | 2000-08-08 14:39:19 +0000 |
|---|---|---|
| committer | Ken Raeburn | 2000-08-08 14:39:19 +0000 |
| commit | d4225c08140da5c1d7a73de98245ad9fc49a1b81 (patch) | |
| tree | 87f7d13062b528398f5326379d3f2bca26d13e35 /src | |
| parent | cba7d658d827638ab0b09fbd2e437bfc557e09be (diff) | |
| download | emacs-d4225c08140da5c1d7a73de98245ad9fc49a1b81.tar.gz emacs-d4225c08140da5c1d7a73de98245ad9fc49a1b81.zip | |
(Fprevious_single_char_property_change): Don't do arithmetic directly on lisp
objects.
Diffstat (limited to 'src')
| -rw-r--r-- | src/textprop.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/textprop.c b/src/textprop.c index f96e6bb6e7d..a14480bf294 100644 --- a/src/textprop.c +++ b/src/textprop.c | |||
| @@ -790,7 +790,8 @@ back past position LIMIT; return LIMIT if nothing is found before LIMIT.") | |||
| 790 | else | 790 | else |
| 791 | { | 791 | { |
| 792 | Lisp_Object initial_value = | 792 | Lisp_Object initial_value = |
| 793 | Fget_char_property (position - 1, prop, object); | 793 | Fget_char_property (make_number (XFASTINT (position) - 1), |
| 794 | prop, object); | ||
| 794 | 795 | ||
| 795 | for (;;) | 796 | for (;;) |
| 796 | { | 797 | { |
| @@ -804,7 +805,8 @@ back past position LIMIT; return LIMIT if nothing is found before LIMIT.") | |||
| 804 | else | 805 | else |
| 805 | { | 806 | { |
| 806 | Lisp_Object value = | 807 | Lisp_Object value = |
| 807 | Fget_char_property (position - 1, prop, object); | 808 | Fget_char_property (make_number (XFASTINT (position) - 1), |
| 809 | prop, object); | ||
| 808 | 810 | ||
| 809 | if (!EQ (value, initial_value)) | 811 | if (!EQ (value, initial_value)) |
| 810 | break; | 812 | break; |