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
Index: src/backend/utils/adt/tsvector.c =================================================================== RCS file: /projects/cvsroot/pgsql/src/backend/utils/adt/tsvector.c,v retrieving revision 1.12 diff -c -r1.12 tsvector.c *** src/backend/utils/adt/tsvector.c 5 Mar 2008 15:50:37 -0000 1.12 --- src/backend/utils/adt/tsvector.c 10 Mar 2008 05:54:34 -0000 *************** *** 224,230 **** if (cur - tmpbuf > MAXSTRPOS) ereport(ERROR, (errcode(ERRCODE_PROGRAM_LIMIT_EXCEEDED), ! errmsg("string is too long for tsvector (%d bytes, max %d bytes)", cur - tmpbuf, MAXSTRPOS))); /* * Enlarge buffers if needed --- 224,230 ---- if (cur - tmpbuf > MAXSTRPOS) ereport(ERROR, (errcode(ERRCODE_PROGRAM_LIMIT_EXCEEDED), ! errmsg("string is too long for tsvector (%ld bytes, max %d bytes)", (long)(cur - tmpbuf), MAXSTRPOS))); /* * Enlarge buffers if needed
-- Sent via pgsql-patches mailing list (pgsql-patches@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-patches