Re: pgsql: Fix misplaced const

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter(at)eisentraut(dot)org>
Cc: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: Re: pgsql: Fix misplaced const
Date: 2019-03-26 13:18:26
Message-ID: 16047.1553606306@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Peter Eisentraut <peter(at)eisentraut(dot)org> 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

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2019-03-26 14:21:25 Re: pgsql: Get rid of backtracking in jsonpath_scan.l
Previous Message Magnus Hagander 2019-03-26 12:32:08 pgsql: Fix typo