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

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 (view raw or flat)
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: tsvector-ptrdiff-type.patch
Description: text/plain (943 bytes)

Responses

pgsql-patches by date

Next:From: Oleg BartunovDate: 2008-03-10 06:34:51
Subject: Re: Include Lists for Text Search
Previous:From: Tom LaneDate: 2008-03-10 03:03:37
Subject: Re: Include Lists for Text Search

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