aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKen Raeburn2000-08-08 14:39:19 +0000
committerKen Raeburn2000-08-08 14:39:19 +0000
commitd4225c08140da5c1d7a73de98245ad9fc49a1b81 (patch)
tree87f7d13062b528398f5326379d3f2bca26d13e35 /src
parentcba7d658d827638ab0b09fbd2e437bfc557e09be (diff)
downloademacs-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.c6
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;