pgsql: Fix misplaced const
pgsql: Fix misplaced const
От:
Peter Eisentraut <peter@eisentraut.org>
Дата:
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. Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/c8c885b7a5c8c1175288de1d8aaec3b4ae9050e1 Modified Files -------------- src/backend/partitioning/partbounds.c | 4 ++-- src/backend/utils/adt/tsquery_op.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
Re: pgsql: Fix misplaced const
От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
Peter Eisentraut writes: > 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. Hmm, maybe even better to make it like this? const char *sa = *((const char *const *) a); regards, tom lane