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.
1 parent 6dba6d8 commit e1b5424Copy full SHA for e1b5424
api/rust/cargo/lief/src/elf/segment.rs
@@ -314,7 +314,7 @@ impl Segment<'_> {
314
315
/// Fill the content of this segment with the value provided in parameter
316
pub fn fill(&mut self, value: char) {
317
- self.ptr.pin_mut().fill(value as i8)
+ self.ptr.pin_mut().fill((value as i8).try_into().unwrap())
318
}
319
320
0 commit comments