bpo-31373: fix undefined floating-point demotions#3396
Conversation
d15a9ef to
60ec3e7
Compare
There was a problem hiding this comment.
You are not supposed to commit this part :-)
There was a problem hiding this comment.
hmm, blurb hiccup I guess
There was a problem hiding this comment.
FLT_MIN is the smallest nonnegative float not what we want here.
There was a problem hiding this comment.
I would be more confident with an assert(sizeof(float) == 4); just in case.
There was a problem hiding this comment.
This code only executes if floats are in IEE754 format and are therefore 4 bytes.
There was a problem hiding this comment.
I don't understand why you remove Py_IS_INFINITY(y).
There was a problem hiding this comment.
y is no longer defined at this point.
There was a problem hiding this comment.
I suggest to put "Type" in the macro names. Maybe _Py_IsTypeSigned(type), _Py_TypeMax(), etc.?
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
7e4b497 to
4d7578b
Compare
4d7578b to
c120b8b
Compare
|
🐍🍒⛏🤖 Thanks @benjaminp for the PR, and @benjaminp for merging it 🌮🎉.I'm working now to backport this PR to: 3.6. |
(cherry picked from commit a853a8b)
|
GH-3424 is a backport of this pull request to the 3.6 branch. |
https://bugs.python.org/issue31373