mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-03-01 07:30:27 +00:00
fix warning casting pointer to int
This commit is contained in:
parent
f11ad3129b
commit
fb4a2a6dc6
@ -1549,14 +1549,14 @@ int load_object(const char *filename, FILE *outfile)
|
||||
text = sdata[i];
|
||||
|
||||
/* Make sure dysym was loaded */
|
||||
if(!(int)dysymtabcmd)
|
||||
if(dysymtabcmd == NULL)
|
||||
error("could not find __DYSYMTAB segment");
|
||||
|
||||
/* read the table of content of the indirect sym */
|
||||
tocdylib = load_data( fd, dysymtabcmd->indirectsymoff, dysymtabcmd->nindirectsyms * sizeof(uint32_t) );
|
||||
|
||||
/* Make sure symtab was loaded */
|
||||
if(!(int)symtabcmd)
|
||||
if(symtabcmd == NULL)
|
||||
error("could not find __SYMTAB segment");
|
||||
nb_syms = symtabcmd->nsyms;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user