Skip to content

Commit 926bbba

Browse files
committed
Fix over-long bitshift on 32-bit hosts.
Fixes #4. (Hopefully.)
1 parent 8fceac7 commit 926bbba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/interpreter.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1001,7 +1001,7 @@ impl<'a, 'tcx: 'a, 'arena> Interpreter<'a, 'tcx, 'arena> {
10011001
variants.push(fields);
10021002
}
10031003

1004-
let discr_size = match variants.len() {
1004+
let discr_size = match variants.len() as u64 {
10051005
n if n <= 1 => 0,
10061006
n if n <= 1 << 8 => 1,
10071007
n if n <= 1 << 16 => 2,

0 commit comments

Comments
 (0)