The encoding of instructions of slightly more correct

This commit is contained in:
Pierre Pronchery 2011-04-23 01:11:20 +00:00
parent 47efb56960
commit c4aef2db4f

View File

@ -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));
} }