Issue 10842 - Some integer casts wrongly remove side-effect of the operand.

http://d.puremagic.com/issues/show_bug.cgi?id=10842