projects
/
users
/
bernd
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db93727
)
Fix a small 64-bit problem in tsearch patch.
author
Tom Lane
<tgl@sss.pgh.pa.us>
Tue, 21 Aug 2007 01:45:33 +0000
(
01:45
+0000)
committer
Tom Lane
<tgl@sss.pgh.pa.us>
Tue, 21 Aug 2007 01:45:33 +0000
(
01:45
+0000)
src/backend/utils/adt/tsvector.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/utils/adt/tsvector.c
b/src/backend/utils/adt/tsvector.c
index ed04e49ab532106a01674cb7bbaaff404eb7c70b..7aa3d52f7f7e0c8601925f626a90a8235b9be1d7 100644
(file)
--- a/
src/backend/utils/adt/tsvector.c
+++ b/
src/backend/utils/adt/tsvector.c
@@
-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)