Stefan Krah added the comment: Yes, according to C99 the shift is undefined:
6.5.7: "If the value of the right operand is negative or is greater than or equal to the width of the promoted left operand, the behavior is undefined." ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue24999> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com