1
0
mirror of https://github.com/postgres/postgres.git synced 2026-10-23 13:29:09 +03:00

Fix incorrect cast in Assert

This was introduced in e3e26d04b, so backpatch to v19.

Reported-by: Lev Nikolaev <lev.nikolaev@tantorlabs.com>
Discussion: https://postgr.es/m/3e991e23-2260-459f-b3d0-e84fb48d353a@tantorlabs.com
Backpatch-through: 19
This commit is contained in:
David Rowley
2026-08-25 20:15:07 +12:00
parent 5e1e32c2c6
commit c00d06417f

View File

@@ -1500,7 +1500,7 @@ bms_prev_member(const Bitmapset *a, int prevbit)
return -2;
/* Validate callers didn't give us something out of range */
Assert(prevbit < 0 || prevbit <= (unsigned int) (a->nwords * BITS_PER_BITMAPWORD));
Assert(prevbit < 0 || prevbit <= (unsigned int) a->nwords * BITS_PER_BITMAPWORD);
/*
* Transform -1 (or any negative number) to the highest possible bit we