[issue10325] PY_LLONG_MAX & co - preprocessor constants or not?
Hallvard B Furuseth
report at bugs.python.org
Sat Nov 6 20:06:26 CET 2010
Hallvard B Furuseth <h.b.furuseth at usit.uio.no> added the comment:
I wrote:
> #define PY_LLONG_MAX \
> (1 + 2 * ((Py_LL(1) << (CHAR_BIT*SIZEOF_LONG_LONG-2)) - 1))
> #define PY_ULLONG_MAX (PY_LLONG_MAX * 2ULL + 1)
Eh, Py_ULL(2).
> (...) I just get peeved when people get this
> wrong, then document and promote the errors:)
Just to be clear, I'm peeving at the comment, not the code.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10325>
_______________________________________
More information about the Python-bugs-list
mailing list