PR binutils/14813
[deliverable/binutils-gdb.git] / bfd / cache.c
index 574d8b2f21b5aa90aa890510b1f85557963426c3..52268162c268ebf01486208b49e0a1b223d5e065 100644 (file)
@@ -362,7 +362,7 @@ cache_bwrite (struct bfd *abfd, const void *where, file_ptr nbytes)
 static int
 cache_bclose (struct bfd *abfd)
 {
-  return bfd_cache_close (abfd);
+  return bfd_cache_close (abfd) - 1;
 }
 
 static int
@@ -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
This page took 0.023104 seconds and 4 git commands to generate.