diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2007-08-21 01:45:33 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2007-08-21 01:45:33 +0000 |
commit | 440a330a31f1eb61c1347973e1b8faf8daef133d (patch) | |
tree | 0ad769863a10af12bf4ff48ec8d908b6169c3cf3 | |
parent | 46dedde5243c4df09470e2543c4d5228254be3f7 (diff) | |
download | postgresql-440a330a31f1eb61c1347973e1b8faf8daef133d.tar.gz postgresql-440a330a31f1eb61c1347973e1b8faf8daef133d.zip |
Fix a small 64-bit problem in tsearch patch.
-rw-r--r-- | src/backend/utils/adt/tsvector.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/backend/utils/adt/tsvector.c b/src/backend/utils/adt/tsvector.c index 04b6345e162..8ab024650f7 100644 --- a/src/backend/utils/adt/tsvector.c +++ b/src/backend/utils/adt/tsvector.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/utils/adt/tsvector.c,v 1.1 2007/08/21 01:11:19 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/utils/adt/tsvector.c,v 1.2 2007/08/21 01:45:33 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -434,8 +434,9 @@ tsvectorin(PG_FUNCTION_ARGS) if (state.curpos - state.word >= MAXSTRLEN) ereport(ERROR, (errcode(ERRCODE_SYNTAX_ERROR), - errmsg("word is too long (%d bytes, max %d bytes)", - state.curpos - state.word, MAXSTRLEN))); + errmsg("word is too long (%ld bytes, max %ld bytes)", + (long) (state.curpos - state.word), + (long) MAXSTRLEN))); arr[len].entry.len = state.curpos - state.word; if (cur - tmpbuf > MAXSTRPOS) |