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:
@@ -1365,7 +1365,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
|
||||
|
||||
Reference in New Issue
Block a user