mirror of
https://github.com/postgres/postgres.git
synced 2025-06-14 18:42:34 +03:00
Make more use of castNode()
This commit is contained in:
@ -1309,11 +1309,10 @@ intervaltypmodleastfield(int32 typmod)
|
||||
Datum
|
||||
interval_transform(PG_FUNCTION_ARGS)
|
||||
{
|
||||
FuncExpr *expr = (FuncExpr *) PG_GETARG_POINTER(0);
|
||||
FuncExpr *expr = castNode(FuncExpr, PG_GETARG_POINTER(0));
|
||||
Node *ret = NULL;
|
||||
Node *typmod;
|
||||
|
||||
Assert(IsA(expr, FuncExpr));
|
||||
Assert(list_length(expr->args) >= 2);
|
||||
|
||||
typmod = (Node *) lsecond(expr->args);
|
||||
|
Reference in New Issue
Block a user