Skip to content

Commit e1b5424

Browse files
committed
Fix casting error
1 parent 6dba6d8 commit e1b5424

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/rust/cargo/lief/src/elf/segment.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ impl Segment<'_> {
314314

315315
/// Fill the content of this segment with the value provided in parameter
316316
pub fn fill(&mut self, value: char) {
317-
self.ptr.pin_mut().fill(value as i8)
317+
self.ptr.pin_mut().fill((value as i8).try_into().unwrap())
318318
}
319319
}
320320

0 commit comments

Comments
 (0)