mirror of
https://github.com/capstone-engine/capstone.git
synced 2024-11-27 15:30:33 +00:00
Added an explicit cast to silence a compiler warning casting a parameter to an enum type (). (#1052)
This commit is contained in:
parent
38db4d36f0
commit
0efc9b9c5a
@ -45,7 +45,7 @@ static cs_err init(cs_struct *ud)
|
||||
static cs_err option(cs_struct *handle, cs_opt_type type, size_t value)
|
||||
{
|
||||
if (type == CS_OPT_MODE) {
|
||||
value = updated_mode(value);
|
||||
value = updated_mode((cs_mode)value);
|
||||
if (value & CS_MODE_32)
|
||||
handle->disasm = Mips_getInstruction;
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user