Skip to content
Browse files

fix for C++

  • Loading branch information...
1 parent c6e278b commit 5649981de4411120d21edb9f417e7b917dd650c6 @comex committed Jul 20, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 mach-o/binary.h
View
5 mach-o/binary.h
@@ -36,8 +36,7 @@ struct mach_binary {
struct mach_header *hdr;
// this stuff is _all_ symbols...
-
- void *symtab;
+ void *symtab; // either nlist or nlist_64
uint32_t nsyms;
// for b_sym (external stuff)
@@ -57,7 +56,7 @@ struct mach_binary {
__BEGIN_DECLS
static inline struct mach_header *b_mach_hdr(const struct binary *binary) {
- return (struct mach_header *) (binary->valid_range.start + binary->header_offset);
+ return (struct mach_header *) ((char *) binary->valid_range.start + binary->header_offset);
}
__attribute__((pure)) range_t b_macho_segrange(const struct binary *binary, const char *segname);

0 comments on commit 5649981

Please sign in to comment.
Something went wrong with that request. Please try again.