Be a little more careful with the shift computations in QT2QTN and
Tom Lane <tgl@sss.pgh.pa.us>
Be a little more careful with the shift computations in QT2QTN and makeTSQuerySign. The first of these is a live bug, on some platforms, as per bug #5590 from John Regehr. However the consequences seem limited because of the relatively narrow scope of use of QTNode.sign. The shift in makeTSQuerySign is actually safe because TSQS_SIGLEN is unsigned, but it seems like a good idea to insert an explicit cast rather than depend on that.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/tsquery_op.c | modified | +2 −2 |
| src/backend/utils/adt/tsquery_util.c | modified | +2 −2 |