diff options
Diffstat (limited to 'src/libmach')
-rw-r--r-- | src/libmach/elf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmach/elf.c b/src/libmach/elf.c index 2e5e290f..72c0bd3e 100644 --- a/src/libmach/elf.c +++ b/src/libmach/elf.c @@ -310,7 +310,7 @@ unpacksect(ElfHdr *h, ElfSect *s, ElfSectBytes *b) u32int (*e4)(uchar*); e4 = h->e4; - s->name = (char*)e4(b->name); + s->name = (char*)(uintptr)e4(b->name); s->type = e4(b->type); s->flags = e4(b->flags); s->addr = e4(b->addr); |