Mark Dickinson added the comment:
... though on second thoughts, it's probably better to spell that
div = -1 - (left - 1) / right
to avoid compiler warnings about bit operations on signed types. A good
compiler should be able to optimise `-1 - x` to `~x` anyway.
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue26289>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com