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

Commit3b0ee7f

Browse files
committed
Ensure that length argument of memcmp() isn't seen as negative.
I think this will shut up a weird warning from buildfarm memberserinus. Perhaps it'd be better to change tsCompareString'slength arguments to unsigned, but that seems more invasivethan is justified.Part of a general push to remove off-the-beaten-track warningswhere we can easily do so.
1 parent4c1a1a3 commit3b0ee7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/utils/adt/tsvector_op.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1167,7 +1167,7 @@ tsCompareString(char *a, int lena, char *b, int lenb, bool prefix)
11671167
}
11681168
else
11691169
{
1170-
cmp=memcmp(a,b,Min(lena,lenb));
1170+
cmp=memcmp(a,b,Min((unsignedint)lena, (unsignedint)lenb));
11711171

11721172
if (prefix)
11731173
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp