aboutsummaryrefslogtreecommitdiff
path: root/bfd/cache.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2012-10-22 04:51:52 +0000
committerAlan Modra <amodra@gmail.com>2012-10-22 04:51:52 +0000
commiteac3aa9e9a0163844ff1444b61d3a6eeff9a1fa3 (patch)
tree069e69964b7f2f08f68db2b2aacbc786de0dd705 /bfd/cache.c
parent94dc4eaff7c466781c2ee7bc92de885342f085cd (diff)
downloadgdb-eac3aa9e9a0163844ff1444b61d3a6eeff9a1fa3.zip
gdb-eac3aa9e9a0163844ff1444b61d3a6eeff9a1fa3.tar.gz
gdb-eac3aa9e9a0163844ff1444b61d3a6eeff9a1fa3.tar.bz2
* 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 574d8b2..88f89b1 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