Skip to content

Commit

Permalink
Fix the build on rust nightly and beta
Browse files Browse the repository at this point in the history
The regression is filed as rust-lang/rust#45480. It seems this broke because of rust-lang/rust#44287.
  • Loading branch information
jrmuizel authored Oct 23, 2017
1 parent d014f0b commit dc567b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/decoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ impl<'a, 'b> Iterator for InstructionIterator<'a, 'b> {
match self.decoder.decode(self.buffer, self.ip) {
Ok(Some(insn)) => {
self.buffer = &self.buffer[insn.length as usize..];
self.ip += insn.length as _;
self.ip += insn.length as u64;
Some((insn, self.ip))
}
_ => None,
Expand Down

0 comments on commit dc567b0

Please sign in to comment.