Antoine Pitrou added the comment:

I *think* shifting by an amount larger than the operand's width is undefined 
behaviour (at least LLVM clearly seems to think so, since it gives different 
results on x86 and ARM), so the compiler is probably allowed to do what it 
wants (even return 42).

----------
nosy: +pitrou

_______________________________________
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

Reply via email to