commit | 2fb7c8e46a6668365b36c944d7659246e858d0af | [log] [tgz] |
---|---|---|
author | danghvu <danghvu@gmail.com> | Thu Oct 02 07:38:24 2014 -0500 |
committer | danghvu <danghvu@gmail.com> | Thu Oct 02 07:38:53 2014 -0500 |
tree | 62768bc85b43075b9e0e58f47effc3c696b9ac43 | |
parent | e96935ed6859a67d4e095ca5680e3c033706f141 [diff] [blame] |
Fix a bug with previous patch
diff --git a/cs.c b/cs.c index b8d0693..a019c18 100644 --- a/cs.c +++ b/cs.c
@@ -532,7 +532,7 @@ if (f == cache_size) { // full cache, so resize total to contain next disasm insns - cache_size = cache_size << 2 / 5; // * 1.6 ~ golden ratio + cache_size = cache_size * 8 / 5; // * 1.6 ~ golden ratio total_size += (sizeof(cs_insn) * cache_size); tmp = cs_mem_realloc(total, total_size); if (tmp == NULL) { // insufficient memory