Skip to content

Commit

Permalink
cmds: x: Calculate next addr correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
benediktwerner committed Jul 26, 2019
1 parent 401d39a commit 624d487
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmds/printing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ fn cmd_x(dbg: &mut Debugger, args: &[CmdArg]) -> CmdResult {
_ => unreachable!(),
};
println!(" 0x{:08x}: {}", addr, val_str);
addr += count * size;
addr += size;
}
}
Ok(())
Expand Down

0 comments on commit 624d487

Please sign in to comment.