The encoding of instructions of slightly more correct
This commit is contained in:
parent
47efb56960
commit
c4aef2db4f
@ -275,8 +275,7 @@ static int _java_write(ArchPlugin * plugin, ArchInstruction * instruction,
|
|||||||
ArchPluginHelper * helper = plugin->helper;
|
ArchPluginHelper * helper = plugin->helper;
|
||||||
|
|
||||||
/* FIXME really implement */
|
/* FIXME really implement */
|
||||||
return (fwrite(&instruction->opcode, sizeof(instruction->opcode), 1,
|
return (fwrite(&instruction->opcode, sizeof(char), 1, helper->fp) == 1)
|
||||||
helper->fp) == 1) ? 0
|
? 0 : -error_set_code(1, "%s: %s", helper->filename,
|
||||||
: -error_set_code(1, "%s: %s", helper->filename,
|
|
||||||
strerror(errno));
|
strerror(errno));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user