aboutsummaryrefslogtreecommitdiff
path: root/src/libmach
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2006-04-20 21:37:15 +0000
committerrsc <devnull@localhost>2006-04-20 21:37:15 +0000
commit35afcc6c772f327cb612286430534281918e74f9 (patch)
treefd87860a58b0e89b0613e9a7d16836df0cf71bdf /src/libmach
parent8c7b4c825f3630947fd3c715ba1325761b12b54d (diff)
downloadplan9port-35afcc6c772f327cb612286430534281918e74f9.tar.gz
plan9port-35afcc6c772f327cb612286430534281918e74f9.tar.bz2
plan9port-35afcc6c772f327cb612286430534281918e74f9.zip
warning
Diffstat (limited to 'src/libmach')
-rw-r--r--src/libmach/elf.c2
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);