Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Get rid of gcc-4.6 warnings

  • Loading branch information...
commit 19f2a031968534528edc9d629912153e4aca4e84 1 parent f95140a
@shinh authored
Showing with 3 additions and 3 deletions.
  1. +2 −2 mach-o.cc
  2. +1 −1  macho2elf.cc
View
4 mach-o.cc
@@ -168,7 +168,7 @@ void MachOImpl::readSegment(char* cmds_ptr,
"fileoff=%llu filesize=%llu "
"maxprot=%d initprot=%d nsects=%u flags=%u\n",
segment->segname,
- (void*)segment->vmaddr, (ull)segment->vmsize,
+ (void*)(intptr_t)segment->vmaddr, (ull)segment->vmsize,
(ull)segment->fileoff, (ull)segment->filesize,
segment->maxprot, segment->initprot,
segment->nsects, segment->flags);
@@ -182,7 +182,7 @@ void MachOImpl::readSegment(char* cmds_ptr,
"reloff=%u nreloc=%u flags=%u "
"reserved1=%u reserved2=%u\n",
sec.sectname, sec.segname,
- (void*)sec.addr, (ull)sec.size,
+ (void*)(intptr_t)sec.addr, (ull)sec.size,
sec.offset, sec.align,
sec.reloff, sec.nreloc, sec.flags,
sec.reserved1, sec.reserved2);
View
2  macho2elf.cc
@@ -527,7 +527,7 @@ class ELFBuilder {
sym->st_shndx = shndx;
sym_index = sym - (Sym*)s->data.data();
printf("sym: %x %p index=%d\n",
- sym->st_name, (void*)sym->st_value, sym_index);
+ sym->st_name, (void*)(intptr_t)sym->st_value, sym_index);
hs = symtab->hash;
if (hs) {
int *ptr, *base;
Please sign in to comment.
Something went wrong with that request. Please try again.