Skip to content

Commit

Permalink
fix inconsistent behavior of Mips_option() (capstone-engine#1744)
Browse files Browse the repository at this point in the history
  • Loading branch information
veritas501 authored Jun 13, 2021
1 parent 68204a1 commit c72fc81
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/Mips/MipsModule.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,9 @@ cs_err Mips_option(cs_struct *handle, cs_opt_type type, size_t value)
{
if (type == CS_OPT_MODE) {
handle->mode = updated_mode(value);
return CS_ERR_OK;
}

return CS_ERR_OPTION;
return CS_ERR_OK;
}

#endif

0 comments on commit c72fc81

Please sign in to comment.