mirror of
https://github.com/postgres/postgres.git
synced 2025-07-07 00:36:50 +03:00
Rearrange some static assertions for consistency
Put lengthof first. Reported-by: Peter Smith <smithpb2250@gmail.com> Discussion: https://www.postgresql.org/message-id/CAHut+PsUDMySVRuRc=h+P5N3+=TGvj4W_mi32XXg9dt4o-BXbA@mail.gmail.com
This commit is contained in:
@ -496,7 +496,7 @@ ExecInterpExpr(ExprState *state, ExprContext *econtext, bool *isnull)
|
||||
&&CASE_EEOP_LAST
|
||||
};
|
||||
|
||||
StaticAssertStmt(EEOP_LAST + 1 == lengthof(dispatch_table),
|
||||
StaticAssertStmt(lengthof(dispatch_table) == EEOP_LAST + 1,
|
||||
"dispatch_table out of whack with ExprEvalOp");
|
||||
|
||||
if (unlikely(state == NULL))
|
||||
|
Reference in New Issue
Block a user