Skip to content

Commit 40d0a1b

Browse files
DJViaudjviau
andauthored
change pretty-calldata labels from ints to memory regions (#4487)
Co-authored-by: djviau <[email protected]>
1 parent 9d795d0 commit 40d0a1b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

common/src/selectors.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,8 +332,9 @@ impl fmt::Display for PossibleSigs {
332332

333333
writeln!(f, " ------------")?;
334334
for (i, row) in self.data.iter().enumerate() {
335-
let pad = if i < 10 { " " } else { " " };
336-
writeln!(f, " [{i}]:{pad}{row}")?;
335+
let row_label_decimal = i * 32;
336+
let row_label_hex = format!("{:03x}", row_label_decimal);
337+
writeln!(f, " [{row_label_hex}]: {row}")?;
337338
}
338339
Ok(())
339340
}

0 commit comments

Comments
 (0)