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

Commit5ae396f

Browse files
committed
fix comparator
1 parente8b9ca1 commit5ae396f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

‎src/dir.c‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -449,13 +449,12 @@ BlackListCompare(const void *str1, const void *str2)
449449
int
450450
pgCompareOid(constvoid*f1,constvoid*f2)
451451
{
452-
Oidv1=*(Oid*)f1;
453-
Oidv2=*(Oid*)f2;
452+
Oid*v1=*(Oid**)f1;
453+
Oid*v2=*(Oid**)f2;
454454

455-
elog(WARNING,"pgCompareOid %u %u",v1,v2);
456-
if (v1>v2)
455+
if (*v1>*v2)
457456
return1;
458-
elseif (v1<v2)
457+
elseif (*v1<*v2)
459458
return-1;
460459
else
461460
return0;}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp