Skip to content

Commit d66e8cb

Browse files
robert-w-griesphil-opp
authored andcommitted
Resolve tyvar_behind_raw_pointer warning (#37)
1 parent aeeb282 commit d66e8cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/elf_sections.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ pub struct ElfSectionsTag {
88
pub fn elf_sections_tag(tag: &Tag) -> ElfSectionsTag {
99
assert_eq!(9, tag.typ);
1010
let es = ElfSectionsTag {
11-
inner: unsafe { (tag as *const _).offset(1) } as *const _,
11+
inner: unsafe { (tag as *const Tag).offset(1) } as *const ElfSectionsTagInner,
1212
};
1313
assert!((es.get().entry_size * es.get().shndx) <= tag.size);
1414
es

0 commit comments

Comments
 (0)