aboutsummaryrefslogtreecommitdiff
path: root/bfd/cache.c
diff options
context:
space:
mode:
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