@@ -543,23 +543,23 @@ extern PGDLLIMPORT Node *newNodeMacroHolder;
543
543
#define IsA (nodeptr ,_type_ )(nodeTag(nodeptr) == T_##_type_)
544
544
545
545
/*
546
- * castNode(type, ptr) casts ptr to typeand, ifcassert is enabled, verifies
547
- * that thethe c actually has the appropriate type (usingit's nodeTag()).
546
+ * castNode(type, ptr) casts ptr to" type*", and ifassertions are enabled,
547
+ *verifies that thenode has the appropriate type (usingits nodeTag()).
548
548
*
549
549
* Use an inline function when assertions are enabled, to avoid multiple
550
550
* evaluations of the ptr argument (which could e.g. be a function call).
551
551
*/
552
552
#ifdef USE_ASSERT_CHECKING
553
- static inline Node *
554
- castNodeImpl (enum NodeTag type ,void * ptr )
553
+ static inline Node *
554
+ castNodeImpl (NodeTag type ,void * ptr )
555
555
{
556
556
Assert (ptr == NULL || nodeTag (ptr )== type );
557
- return ptr ;
557
+ return ( Node * ) ptr ;
558
558
}
559
559
#define castNode (_type_ ,nodeptr ) ((_type_ *) castNodeImpl(T_##_type_, nodeptr))
560
560
#else
561
- #define castNode (_type_ ,nodeptr ) ((_type_ *)(nodeptr))
562
- #endif
561
+ #define castNode (_type_ ,nodeptr ) ((_type_ *) (nodeptr))
562
+ #endif /* USE_ASSERT_CHECKING */
563
563
564
564
565
565
/* ----------------------------------------------------------------