]> granicus.if.org Git - python/commit
SF bug #477221: abs and divmod act oddly with -0.0
authorTim Peters <tim.peters@gmail.com>
Thu, 1 Nov 2001 23:12:27 +0000 (23:12 +0000)
committerTim Peters <tim.peters@gmail.com>
Thu, 1 Nov 2001 23:12:27 +0000 (23:12 +0000)
commitd2e40d6691899d5969b68cdf967d7b392b4e6e6b
treed4623700d71dd98e1a0ab86c838b4170b9a54ad1
parentfaf0cd21edde392d4d30e2e4f7d9fa2fb9973b71
SF bug #477221: abs and divmod act oddly with -0.0
Try to ensure that divmod(-0.0, 1.0) -> (-0.0, +0.0) across platforms.
It always did on Windows, and still does.  It didn't on Linux.  Alas,
there's no platform-independent way to write a test case for this.
Bugfix candidate.
Objects/floatobject.c