Skip to content

Commit

Permalink
fix field bit range
Browse files Browse the repository at this point in the history
  • Loading branch information
kossnikita committed Sep 21, 2023
1 parent 77bbbba commit 7a18d54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/html/html_cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,8 @@ fn parse_register(
let idxs = format!("[{idx}]");
f.name = f.name.replace("[%s]", &idxs).replace("%s", &idxs);
f.bit_range = BitRange::from_offset_width(
f.bit_offset(),
f.bit_width() + (i as u32) * d.dim_increment,
f.bit_offset() + (i as u32) * d.dim_increment,
f.bit_width(),
);
f.description = f
.description
Expand Down

0 comments on commit 7a18d54

Please sign in to comment.