Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-patches by date

Next:From: Simon RiggsDate: 2008-03-10 13:31:09
Subject: Re: Include Lists for Text Search
Previous:From: Andrew DunstanDate: 2008-03-10 12:24:08
Subject: Re: Include Lists for Text Search

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group