commit | 3973d8b11e616e2eb749d7b98f679e9597abeb59 | [log] [tgz] |
---|---|---|
author | FĂ©lix Cloutier <felix@felixcloutier.com> | Mon Mar 02 22:06:56 2015 -0500 |
committer | Nguyen Anh Quynh <aquynh@gmail.com> | Wed Mar 04 11:26:27 2015 +0800 |
tree | e3c72436f4d2c7fdc9eb1210538e931236f05564 | |
parent | 1f151f997cd75c74da3c86231346aa92aff0ea7a [diff] [blame] |
Silencing Clang warning bys casting values Warnings were: "Implicit conversion loses integer precision: 'size_t' to 'cs_mode'/'cs_opt_value'"
diff --git a/cs.c b/cs.c index 2ad6b71..4b71620 100644 --- a/cs.c +++ b/cs.c
@@ -363,7 +363,7 @@ default: break; case CS_OPT_DETAIL: - handle->detail = value; + handle->detail = (cs_opt_value)value; return CS_ERR_OK; case CS_OPT_SKIPDATA: handle->skipdata = (value == CS_OPT_ON);