diff options
Diffstat (limited to 'src/intervals.h')
| -rw-r--r-- | src/intervals.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/intervals.h b/src/intervals.h index f6c1c002ce0..d7c34012e1f 100644 --- a/src/intervals.h +++ b/src/intervals.h | |||
| @@ -161,8 +161,13 @@ struct interval | |||
| 161 | (INTERVAL_HAS_PARENT (i) ? INTERVAL_PARENT (i) : 0) | 161 | (INTERVAL_HAS_PARENT (i) ? INTERVAL_PARENT (i) : 0) |
| 162 | 162 | ||
| 163 | /* Abort if interval I's size is negative. */ | 163 | /* Abort if interval I's size is negative. */ |
| 164 | #define CHECK_TOTAL_LENGTH(i) \ | 164 | #define CHECK_TOTAL_LENGTH(i) \ |
| 165 | if ((int) (i)->total_length < 0) abort (); else | 165 | do \ |
| 166 | { \ | ||
| 167 | if ((int) (i)->total_length < 0) \ | ||
| 168 | abort (); \ | ||
| 169 | } \ | ||
| 170 | while (0) | ||
| 166 | 171 | ||
| 167 | /* Reset this interval to its vanilla, or no-property state. */ | 172 | /* Reset this interval to its vanilla, or no-property state. */ |
| 168 | #define RESET_INTERVAL(i) \ | 173 | #define RESET_INTERVAL(i) \ |
| @@ -339,4 +344,3 @@ extern Lisp_Object get_pos_property (Lisp_Object pos, Lisp_Object prop, | |||
| 339 | extern void syms_of_textprop (void); | 344 | extern void syms_of_textprop (void); |
| 340 | 345 | ||
| 341 | #include "composite.h" | 346 | #include "composite.h" |
| 342 | |||