[New-bugs-announce] [issue46656] Compile fails if Py_NO_NAN is defined

Mark Dickinson report at bugs.python.org
Sun Feb 6 04:54:35 EST 2022


New submission from Mark Dickinson <dickinsm at gmail.com>:

The macro Py_NAN may or may not be defined: in particular, a platform that doesn't have NaNs is supposed to be able to define Py_NO_NAN in pyport.h to indicate that.

But not all of our uses of `Py_NAN` are guarded by suitable #ifdef conditionals. As a result, compilation fails if Py_NAN is not defined.

----------
messages: 412620
nosy: mark.dickinson
priority: normal
severity: normal
status: open
title: Compile fails if Py_NO_NAN is defined
type: behavior
versions: Python 3.10, Python 3.11, Python 3.9

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


More information about the New-bugs-announce mailing list