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

Commite6d8009

Browse files
committed
Correct ancient logic mistake in assertion
Found by gcc -Wlogical-op
1 parentba3de10 commite6d8009

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/backend/bootstrap/bootstrap.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,7 @@ InsertOneValue(char *value, int i)
817817
Oidtypoutput;
818818
char*prt;
819819

820-
AssertArg(i >=0||i<MAXATTR);
820+
AssertArg(i >=0&&i<MAXATTR);
821821

822822
elog(DEBUG4,"inserting column %d value \"%s\"",i,value);
823823

@@ -842,7 +842,7 @@ void
842842
InsertOneNull(inti)
843843
{
844844
elog(DEBUG4,"inserting column %d NULL",i);
845-
Assert(i >=0||i<MAXATTR);
845+
Assert(i >=0&&i<MAXATTR);
846846
values[i]=PointerGetDatum(NULL);
847847
Nulls[i]= true;
848848
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp