summaryrefslogtreecommitdiff
path: root/bfd/cache.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2012-10-22 04:51:49 +0000
committerAlan Modra <amodra@bigpond.net.au>2012-10-22 04:51:49 +0000
commit3544224497f3da3ea38508b26d1fc5012891ddc8 (patch)
tree5191ae4b22a6e89b0c0fe9a1ad1b63af7c1eae49 /bfd/cache.c
parentc88cd5ca29fea8063c2c2a92b8b599492531ca70 (diff)
downloadbinutils-redhat-3544224497f3da3ea38508b26d1fc5012891ddc8.tar.gz
* cache.c (cache_bmmap): Don't use void* arithmetic.
Diffstat (limited to 'bfd/cache.c')
-rw-r--r--bfd/cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/cache.c b/bfd/cache.c
index 574d8b2f21..88f89b169a 100644
--- a/bfd/cache.c
+++ b/bfd/cache.c
@@ -437,7 +437,7 @@ cache_bmmap (struct bfd *abfd ATTRIBUTE_UNUSED,
{
*map_addr = ret;
*map_len = pg_len;
- ret += offset & pagesize_m1;
+ ret = (char *) ret + (offset & pagesize_m1);
}
}
#endif