File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -543,23 +543,23 @@ extern PGDLLIMPORT Node *newNodeMacroHolder;
543543#define IsA (nodeptr ,_type_ ) (nodeTag(nodeptr) == T_##_type_)
544544
545545/*
546- * castNode(type, ptr) casts ptr to type and, if cassert is enabled, verifies
547- * that the the c actually has the appropriate type (using it's nodeTag()).
546+ * castNode(type, ptr) casts ptr to " type *", and if assertions are enabled,
547+ * verifies that the node has the appropriate type (using its nodeTag()).
548548 *
549549 * Use an inline function when assertions are enabled, to avoid multiple
550550 * evaluations of the ptr argument (which could e.g. be a function call).
551551 */
552552#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 )
555555{
556556 Assert (ptr == NULL || nodeTag (ptr ) == type );
557- return ptr ;
557+ return ( Node * ) ptr ;
558558}
559559#define castNode (_type_ , nodeptr ) ((_type_ *) castNodeImpl(T_##_type_, nodeptr))
560560#else
561- #define castNode (_type_ ,nodeptr ) ((_type_ *)(nodeptr))
562- #endif
561+ #define castNode (_type_ , nodeptr ) ((_type_ *) (nodeptr))
562+ #endif /* USE_ASSERT_CHECKING */
563563
564564
565565/* ----------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments