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

Commitc8c885b

Browse files
committed
Fix misplaced const
These instances were apparently trying to carry the const qualifierfrom the arguments through the complex casts, but for that the constqualifier was misplaced.
1 parent2ac1b2b commitc8c885b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

‎src/backend/partitioning/partbounds.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1684,8 +1684,8 @@ qsort_partition_hbound_cmp(const void *a, const void *b)
16841684
staticint32
16851685
qsort_partition_list_value_cmp(constvoid*a,constvoid*b,void*arg)
16861686
{
1687-
Datumval1= (*(constPartitionListValue**)a)->value,
1688-
val2= (*(constPartitionListValue**)b)->value;
1687+
Datumval1= (*(PartitionListValue*const*)a)->value,
1688+
val2= (*(PartitionListValue*const*)b)->value;
16891689
PartitionKeykey= (PartitionKey)arg;
16901690

16911691
returnDatumGetInt32(FunctionCall2Coll(&key->partsupfunc[0],

‎src/backend/utils/adt/tsquery_op.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,8 +296,8 @@ collectTSQueryValues(TSQuery a, int *nvalues_p)
296296
staticint
297297
cmp_string(constvoid*a,constvoid*b)
298298
{
299-
constchar*sa=*((constchar**)a);
300-
constchar*sb=*((constchar**)b);
299+
constchar*sa=*((char*const*)a);
300+
constchar*sb=*((char*const*)b);
301301

302302
returnstrcmp(sa,sb);
303303
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp