Skip to content

Commit

Permalink
Fix over-long bitshift on 32-bit hosts.
Browse files Browse the repository at this point in the history
Fixes #4. (Hopefully.)
  • Loading branch information
solson committed Apr 14, 2016
1 parent 8fceac7 commit 926bbba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interpreter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,7 @@ impl<'a, 'tcx: 'a, 'arena> Interpreter<'a, 'tcx, 'arena> {
variants.push(fields);
}

let discr_size = match variants.len() {
let discr_size = match variants.len() as u64 {
n if n <= 1 => 0,
n if n <= 1 << 8 => 1,
n if n <= 1 << 16 => 2,
Expand Down

0 comments on commit 926bbba

Please sign in to comment.