[issue41617] __builtin_bswap16 is used without checking it is supported

STINNER Victor report at bugs.python.org
Mon Aug 24 12:35:36 EDT 2020


STINNER Victor <vstinner at python.org> added the comment:

> Older clang versions don't have __builtin_bswap16,

According to https://github.com/nodejs/node/pull/7644 it's available in clang 3.2 but not in clang 3.0.

I wrote PR 21949 to fix the issue: it only uses __has_builtin() if __clang__ is defined, it's different than PR 21942.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41617>
_______________________________________


More information about the Python-bugs-list mailing list