Added an explicit cast to silence a compiler warning casting a parameter to an enum type (). (#1052)

This commit is contained in:
Jean-David Gadina 2017-11-21 08:19:29 +01:00 committed by Nguyen Anh Quynh
parent 38db4d36f0
commit 0efc9b9c5a

View File

@ -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