Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95837f1 commit 4e8ab5dCopy full SHA for 4e8ab5d
1 file changed
Objects/floatobject.c
@@ -476,7 +476,7 @@ float_divmod(PyObject *v, PyObject *w)
476
fmod returns different results across platforms; ensure
477
it has the same sign as the denominator; we'd like to do
478
"mod = wx * 0.0", but that may get optimized away */
479
- mod = 0.0;
+ mod *= mod; /* hide "mod = +0" from optimizer */
480
if (wx < 0.0)
481
mod = -mod;
482
}
0 commit comments