Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit84f99bf

Browse files
peterepull[bot]
authored andcommitted
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
1 parent7b7c9b9 commit84f99bf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎src/backend/executor/execExprInterp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ ExecInterpExpr(ExprState *state, ExprContext *econtext, bool *isnull)
496496
&&CASE_EEOP_LAST
497497
};
498498

499-
StaticAssertStmt(EEOP_LAST+1==lengthof(dispatch_table),
499+
StaticAssertStmt(lengthof(dispatch_table)==EEOP_LAST+1,
500500
"dispatch_table out of whack with ExprEvalOp");
501501

502502
if (unlikely(state==NULL))

‎src/backend/utils/cache/syscache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1068,7 +1068,7 @@ InitCatalogCache(void)
10681068
{
10691069
intcacheId;
10701070

1071-
StaticAssertStmt(SysCacheSize== (int)lengthof(cacheinfo),
1071+
StaticAssertStmt(lengthof(cacheinfo)==SysCacheSize,
10721072
"SysCacheSize does not match syscache.c's array");
10731073

10741074
Assert(!CacheInitialized);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp