]> code.delx.au - gnu-emacs/commitdiff
(PLIST_ELT_P): Avoid assignments in arguments to a type-test macro.
authorKarl Heuer <kwzh@gnu.org>
Tue, 15 Nov 1994 22:54:15 +0000 (22:54 +0000)
committerKarl Heuer <kwzh@gnu.org>
Tue, 15 Nov 1994 22:54:15 +0000 (22:54 +0000)
src/textprop.c

index 2e76f0c17ab986fe8fec92d15bdd30cbab45c372..cc252dacef1bac7f5268dab6c55420bb01380dbe 100644 (file)
@@ -61,7 +61,7 @@ Lisp_Object Qfront_sticky, Qrear_nonsticky;
 /* If o1 is a cons whose cdr is a cons, return non-zero and set o2 to
    the o1's cdr.  Otherwise, return zero.  This is handy for
    traversing plists.  */
-#define PLIST_ELT_P(o1, o2) (CONSP (o1) && CONSP ((o2) = XCONS (o1)->cdr))
+#define PLIST_ELT_P(o1, o2) (CONSP (o1) && ((o2)=XCONS (o1)->cdr, CONSP (o2)))
 
 Lisp_Object Vinhibit_point_motion_hooks;