tsvector prints pointer difference as int

From: Kris Jurka <books(at)ejurka(dot)com>
To: pgsql-patches(at)postgresql(dot)org
Subject: tsvector prints pointer difference as int
Date: 2008-03-10 05:57:39
Message-ID: Pine.BSO.4.64.0803100154580.24272@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches


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.

Kris Jurka

Attachment Content-Type Size
tsvector-ptrdiff-type.patch text/plain 943 bytes

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Oleg Bartunov 2008-03-10 06:34:51 Re: Include Lists for Text Search
Previous Message Tom Lane 2008-03-10 03:03:37 Re: Include Lists for Text Search