Petri Lehtinen added the comment: Christian Heimes wrote: > AFAIK C89 doesn't specify integer overflows:
Casting a signed integer to an unsigned integer is always defined, if that's what you're talking about. See http://flash-gordon.me.uk/ansi.c.txt, section 3.2.1.2. If you're talking about PyLong_AsLongWithOverflow() and friends, they do bitshift magic to detect overflows. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue2005> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com