mozilla/rust — Issue #1888: Shift operators are undefined in some situations
Author: brson
Created: 2012-02-23 02:01:49+00:00
State: open
Labels: I-enhancement

When shifting by greater than the bit width of the type or negative values, the results are undefined. As discussed in #1570, it might be nice if this was not the case.