Re: tsvector prints pointer difference as int

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Kris Jurka <books(at)ejurka(dot)com>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: tsvector prints pointer difference as int
Date: 2008-03-10 12:58:09
Message-ID: 12548.1205153889@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Kris Jurka <books(at)ejurka(dot)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

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Simon Riggs 2008-03-10 13:31:09 Re: Include Lists for Text Search
Previous Message Andrew Dunstan 2008-03-10 12:24:08 Re: Include Lists for Text Search