summaryrefslogtreecommitdiff
path: root/src/intervals.h
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2011-03-18 09:39:15 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2011-03-18 09:39:15 -0700
commit235d7abc8e825c66c642023ff6290ae83f6dac86 (patch)
tree6e5a3d144ea5bbdbf4b032e63ef7fb3fa51a4ce8 /src/intervals.h
parentc83b88720cb825690820f549c1a070766b685f76 (diff)
downloademacs-235d7abc8e825c66c642023ff6290ae83f6dac86.tar.gz
* intervals.h (CHECK_TOTAL_LENGTH): Avoid empty "else".
Diffstat (limited to 'src/intervals.h')
-rw-r--r--src/intervals.h10
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
(INTERVAL_HAS_PARENT (i) ? INTERVAL_PARENT (i) : 0)
/* Abort if interval I's size is negative. */
-#define CHECK_TOTAL_LENGTH(i) \
- if ((int) (i)->total_length < 0) abort (); else
+#define CHECK_TOTAL_LENGTH(i) \
+ do \
+ { \
+ if ((int) (i)->total_length < 0) \
+ abort (); \
+ } \
+ while (0)
/* Reset this interval to its vanilla, or no-property state. */
#define RESET_INTERVAL(i) \
@@ -339,4 +344,3 @@ extern Lisp_Object get_pos_property (Lisp_Object pos, Lisp_Object prop,
extern void syms_of_textprop (void);
#include "composite.h"
-