commit 35afcc6c772f327cb612286430534281918e74f9 parent 8c7b4c825f3630947fd3c715ba1325761b12b54d Author: rsc <devnull@localhost> Date: Thu, 20 Apr 2006 21:37:15 +0000 warning Diffstat:
M | src/libmach/elf.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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);