Re: pgsql: Fix misplaced const

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgsql: Fix misplaced const
Дата
Msg-id 16047.1553606306@sss.pgh.pa.us
обсуждение исходный текст
Ответ на pgsql: Fix misplaced const  (Peter Eisentraut <peter@eisentraut.org>)
Список pgsql-committers
Peter Eisentraut <peter@eisentraut.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


В списке pgsql-committers по дате отправления:

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: pgsql: Fix typo
Следующее
От: Michael Paquier
Дата:
Сообщение: pgsql: Improve error handling of column references in expressiontransf