summaryrefslogtreecommitdiff
path: root/src/textprop.c
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2001-11-26 02:19:38 +0000
committerStefan Monnier <monnier@iro.umontreal.ca>2001-11-26 02:19:38 +0000
commitce768453c1c676c74a6f310d9f948f7555fa3314 (patch)
tree785dbb214049e304b6e6034f2a6fd76dea2c30fd /src/textprop.c
parent201ffa579a8caaf0eaf71a8ba66d509c649e437c (diff)
downloademacs-ce768453c1c676c74a6f310d9f948f7555fa3314.tar.gz
(set_text_properties_1): Clearly mark that the interval should not be empty.
Diffstat (limited to 'src/textprop.c')
-rw-r--r--src/textprop.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/textprop.c b/src/textprop.c
index a473bebeab6..cd07484204b 100644
--- a/src/textprop.c
+++ b/src/textprop.c
@@ -1303,7 +1303,8 @@ set_text_properties (start, end, properties, object, signal_after_change_p)
properties PROPERTIES. BUFFER is the buffer containing
the text. This does not obey any hooks.
You can provide the interval that START is located in as I,
- or pass NULL for I and this function will find it. */
+ or pass NULL for I and this function will find it.
+ This function assumes that START < END. */
void
set_text_properties_1 (start, end, properties, buffer, i)
@@ -1316,6 +1317,7 @@ set_text_properties_1 (start, end, properties, buffer, i)
s = XINT (start);
len = XINT (end) - s;
+ eassert (len > 0);
if (i == 0)
i = find_interval (BUF_INTERVALS (XBUFFER (buffer)), s);