Skip to content

Commit 7a18d54

Browse files
committed
fix field bit range
1 parent 77bbbba commit 7a18d54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/html/html_cli.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,8 @@ fn parse_register(
217217
let idxs = format!("[{idx}]");
218218
f.name = f.name.replace("[%s]", &idxs).replace("%s", &idxs);
219219
f.bit_range = BitRange::from_offset_width(
220-
f.bit_offset(),
221-
f.bit_width() + (i as u32) * d.dim_increment,
220+
f.bit_offset() + (i as u32) * d.dim_increment,
221+
f.bit_width(),
222222
);
223223
f.description = f
224224
.description

0 commit comments

Comments
 (0)