commit | da8adaded289b126a797a6bd783e5d5c8ea4a495 | [log] [tgz] |
---|---|---|
author | Nguyen Anh Quynh <aquynh@gmail.com> | Wed Dec 04 09:44:07 2013 +0800 |
committer | Nguyen Anh Quynh <aquynh@gmail.com> | Wed Dec 04 09:44:07 2013 +0800 |
tree | a8ce3b058f4251ed369f9899454e82a7b0d18e0a | |
parent | c618db44734232641cdedf89d64eca3c1be8bd16 [diff] [blame] |
API cs_option(): @value now has size_t, so mapping opaque pointer is possible for future options
diff --git a/cs.c b/cs.c index a6e2ae2..461e63b 100644 --- a/cs.c +++ b/cs.c
@@ -196,7 +196,7 @@ insn->mnemonic[sizeof(insn->mnemonic) - 1] = '\0'; } -cs_err cs_option(csh ud, cs_opt_type type, cs_opt_value value) +cs_err cs_option(csh ud, cs_opt_type type, size_t value) { cs_struct *handle = (cs_struct *)(uintptr_t)ud; if (!handle)