@@ -481,25 +481,25 @@ extern PGDLLIMPORT Node *newNodeMacroHolder;
481
481
#define IsA (nodeptr ,_type_ ) (nodeTag(nodeptr) == T_##_type_)
482
482
483
483
/*
484
- * castNode(type, ptr) casts ptr to type and, if cassert is enabled, verifies
485
- * that the the c actually has the appropriate type (using it's nodeTag()).
484
+ * castNode(type, ptr) casts ptr to " type *", and if assertions are enabled,
485
+ * verifies that the node has the appropriate type (using its nodeTag()).
486
486
*
487
487
* Use an inline function when assertions are enabled, to avoid multiple
488
- * evaluations of the ptr argument (which could e.g. be a function call). If
489
- * inline functions are not available - only a small number of platforms -
488
+ * evaluations of the ptr argument (which could e.g. be a function call).
489
+ * If inline functions are not available - only a small number of platforms -
490
490
* don't Assert, but use the non-checking version.
491
491
*/
492
492
#if defined(USE_ASSERT_CHECKING ) && defined(PG_USE_INLINE )
493
- static inline Node *
494
- castNodeImpl (enum NodeTag type , void * ptr )
493
+ static inline Node *
494
+ castNodeImpl (NodeTag type , void * ptr )
495
495
{
496
496
Assert (ptr == NULL || nodeTag (ptr ) == type );
497
- return ptr ;
497
+ return ( Node * ) ptr ;
498
498
}
499
499
#define castNode (_type_ , nodeptr ) ((_type_ *) castNodeImpl(T_##_type_, nodeptr))
500
500
#else
501
- #define castNode (_type_ ,nodeptr ) ((_type_ *)(nodeptr))
502
- #endif
501
+ #define castNode (_type_ , nodeptr ) ((_type_ *) (nodeptr))
502
+ #endif /* USE_ASSERT_CHECKING && PG_USE_INLINE */
503
503
504
504
505
505
/* ----------------------------------------------------------------
0 commit comments