Re: tsvector prints pointer difference as int

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: tsvector prints pointer difference as int
Дата
Msg-id 12548.1205153889@sss.pgh.pa.us
обсуждение исходный текст
Ответ на tsvector prints pointer difference as int  (Kris Jurka <books@ejurka.com>)
Список pgsql-patches
Kris Jurka <books@ejurka.com> writes:
> The tsvector code is printing a pointer difference as an integer,
> generating the following warning:
> tsvector.c: In function 'tsvectorin':
> tsvector.c:225: warning: format '%d' expects type 'int', but argument 2
> has type 'long int'

> I was thinking the %td specifier wasn't well supported enough, so I simply
> used long.

Applied, thanks (and yes, %ld is what we generally use for this).

            regards, tom lane

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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: [HACKERS] Include Lists for Text Search
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: [HACKERS] Include Lists for Text Search