diff options
author | Alan Modra <amodra@gmail.com> | 2012-10-22 04:51:52 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2012-10-22 04:51:52 +0000 |
commit | eac3aa9e9a0163844ff1444b61d3a6eeff9a1fa3 (patch) | |
tree | 069e69964b7f2f08f68db2b2aacbc786de0dd705 /bfd/cache.c | |
parent | 94dc4eaff7c466781c2ee7bc92de885342f085cd (diff) | |
download | gdb-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.c | 2 |
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 |