Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit368739d

Browse files
committed
Fix bogus assumption that sizeof() produces an int-sized result.
1 parent577247b commit368739d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎contrib/tsearch2/gistidx.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@ gtsvector_out(PG_FUNCTION_ARGS)
8282
outbuf=palloc(outbuf_maxlen );
8383

8484
if (ISARRKEY(key) )
85-
sprintf(outbuf,ARROUTSTR,ARRNELEM(key) );
85+
sprintf(outbuf,ARROUTSTR,(int)ARRNELEM(key) );
8686
else {
8787
intcnttrue= (ISALLTRUE(key) ) ?SIGLENBIT :sizebitvec(GETSIGN(key));
88-
sprintf(outbuf,SINGOUTSTR,cnttrue,SIGLENBIT-cnttrue );
88+
sprintf(outbuf,SINGOUTSTR,cnttrue,(int)SIGLENBIT-cnttrue );
8989
}
9090

9191
PG_FREE_IF_COPY(key,0);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp