Ensure that length argument of memcmp() isn't seen as negative.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 3b0ee7f583dc347c4aecb57d35830d2f99956e5c
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2022-02-15T22:28:17Z
Releases: 15.0
Ensure that length argument of memcmp() isn't seen as negative.

I think this will shut up a weird warning from buildfarm member
serinus.  Perhaps it'd be better to change tsCompareString's
length arguments to unsigned, but that seems more invasive
than is justified.

Part of a general push to remove off-the-beaten-track warnings
where we can easily do so.

Files

PathChange+/−
src/backend/utils/adt/tsvector_op.c modified +1 −1