git.postgresql.org Git - postgresql.git/commit
2023年7月31日 06:34:29 +0000 (13:34 +0700)
2023年7月31日 07:46:21 +0000 (14:46 +0700)
commit 39055cb4ccd5b521ceb802b6a8194de912a422cc
Bring some MSVC asserts in line with other platforms
MSVC's _BitScan* functions return a boolean indicating whether any
bits were set in the input, and we were previously asserting that
they returned true, per our API. This is correct. However, other
platforms simply assert that the input is non-zero, so do that to be
more consistent.
Noted while investigating a hypothesis from Ranier Vilela about
undefined behavior, but this is not his proposed patch.
Discussion: https://www.postgresql.org/message-id/CAEudQAoDhUZyKGJ1vbMGcgVUOcsixe-%3DjcVaDWarqkUg163D2w%40mail.gmail.com
This is the main PostgreSQL git repository.
RSS
Atom