changeset 9945:9b2ecbd894e4

(PLIST_ELT_P): Avoid assignments in arguments to a type-test macro.
author Karl Heuer <kwzh@gnu.org>
date Tue, 15 Nov 1994 22:54:15 +0000
parents dd9afae74baf
children 571ddbef914a
files src/textprop.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/textprop.c	Tue Nov 15 22:53:26 1994 +0000
+++ b/src/textprop.c	Tue Nov 15 22:54:15 1994 +0000
@@ -61,7 +61,7 @@
 /* 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;