since the condition is always true at first.
2011-04-04 Paul Eggert <eggert@cs.ucla.edu>
+ * textprop.c (set_text_properties_1): Change while to do-while,
+ since the condition is always true at first.
+
* intervals.c (graft_intervals_into_buffer): Mark var as used.
(interval_deletion_adjustment): Return unsigned value.
All uses changed.
i = next_interval (i);
}
- /* We are starting at the beginning of an interval, I */
- while (len > 0)
+ /* We are starting at the beginning of an interval I. LEN is positive. */
+ do
{
if (i == 0)
abort ();
i = next_interval (i);
}
+ while (len > 0);
}
DEFUN ("remove-text-properties", Fremove_text_properties,