We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a0a89ba + 624ccda commit 3d69bc1Copy full SHA for 3d69bc1
src/postprocess.rs
@@ -38,7 +38,7 @@ pub fn size(bytes: &[u8]) -> Cow<[u8]> {
38
Some((needle, addr)) if line.starts_with('.') => {
39
let pos = line.rfind(needle).unwrap();
40
let hex_addr = format!("{addr:#x}");
41
- let start = pos + needle.as_bytes().len() - hex_addr.as_bytes().len();
+ let start = pos + needle.len() - hex_addr.len();
42
43
format!("{}{}", &line[..start], hex_addr).into()
44
}
0 commit comments