summaryrefslogtreecommitdiff
path: root/src/backend/partitioning/partbounds.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2019-03-26 09:23:08 +0100
committerPeter Eisentraut <peter@eisentraut.org>2019-03-26 09:23:08 +0100
commitc8c885b7a5c8c1175288de1d8aaec3b4ae9050e1 (patch)
treefd7e994ebd8864434b8cd10ac11d41d7d3c4811d /src/backend/partitioning/partbounds.c
parent2ac1b2b175ea5456516e59fe2b53a1e0578a5dbd (diff)
Fix misplaced const
These instances were apparently trying to carry the const qualifier from the arguments through the complex casts, but for that the const qualifier was misplaced.
Diffstat (limited to 'src/backend/partitioning/partbounds.c')
-rw-r--r--src/backend/partitioning/partbounds.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/partitioning/partbounds.c b/src/backend/partitioning/partbounds.c
index 803c23aaf50..bdd0d238542 100644
--- a/src/backend/partitioning/partbounds.c
+++ b/src/backend/partitioning/partbounds.c
@@ -1684,8 +1684,8 @@ qsort_partition_hbound_cmp(const void *a, const void *b)
static int32
qsort_partition_list_value_cmp(const void *a, const void *b, void *arg)
{
- Datum val1 = (*(const PartitionListValue **) a)->value,
- val2 = (*(const PartitionListValue **) b)->value;
+ Datum val1 = (*(PartitionListValue *const *) a)->value,
+ val2 = (*(PartitionListValue *const *) b)->value;
PartitionKey key = (PartitionKey) arg;
return DatumGetInt32(FunctionCall2Coll(&key->partsupfunc[0],