forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc545e95
committed
Don't prematurely cram a value into a short int.
Sincea4d75c8, some buildfarm members have been warning thatAssert(attnum <= MaxAttrNumber);is useless if attnum is an AttrNumber. I'm not certain how plausibleit is that the value coming out of the bitmap could actually exceedMaxAttrNumber, but we seem to have thought that that was possible backin7300a69. Revert the intermediate variable to int so that we havethe same overflow protection as before.1 parent3b0c647 commitc545e95
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
978 | 978 |
| |
979 | 979 |
| |
980 | 980 |
| |
981 |
| - | |
| 981 | + | |
982 | 982 |
| |
983 | 983 |
| |
984 | 984 |
| |
|
0 commit comments
Comments
(0)