forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit39055cb
committed
Bring some MSVC asserts in line with other platforms
MSVC's _BitScan* functions return a boolean indicating whether anybits were set in the input, and we were previously asserting thatthey returned true, per our API. This is correct. However, otherplatforms simply assert that the input is non-zero, so do that to bemore consistent.Noted while investigating a hypothesis from Ranier Vilela aboutundefined behavior, but this is not his proposed patch.Discussion:https://www.postgresql.org/message-id/CAEudQAoDhUZyKGJ1vbMGcgVUOcsixe-%3DjcVaDWarqkUg163D2w%40mail.gmail.com1 parent7395a90 commit39055cb
1 file changed
+8
-4
lines changedLines changed: 8 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
48 | 48 |
| |
49 | 49 |
| |
50 | 50 |
| |
| 51 | + | |
| 52 | + | |
51 | 53 |
| |
52 |
| - | |
53 | 54 |
| |
54 | 55 |
| |
55 | 56 |
| |
| |||
85 | 86 |
| |
86 | 87 |
| |
87 | 88 |
| |
| 89 | + | |
| 90 | + | |
88 | 91 |
| |
89 |
| - | |
90 | 92 |
| |
91 | 93 |
| |
92 | 94 |
| |
| |||
116 | 118 |
| |
117 | 119 |
| |
118 | 120 |
| |
| 121 | + | |
| 122 | + | |
119 | 123 |
| |
120 |
| - | |
121 | 124 |
| |
122 | 125 |
| |
123 | 126 |
| |
| |||
156 | 159 |
| |
157 | 160 |
| |
158 | 161 |
| |
| 162 | + | |
| 163 | + | |
159 | 164 |
| |
160 |
| - | |
161 | 165 |
| |
162 | 166 |
| |
163 | 167 |
| |
|
0 commit comments
Comments
(0)