From 5e94dbabb53d3ff35bc5dc4993a147622e163d6c Mon Sep 17 00:00:00 2001 From: Nguyen Anh Quynh Date: Wed, 30 Sep 2015 10:51:22 +0800 Subject: [PATCH] fix an warning in test_iter_benchmark.c --- .gitignore | 5 ++++- suite/benchmark/test_iter_benchmark.c | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index bbe0c16cc6..ff23bd4441 100644 --- a/.gitignore +++ b/.gitignore @@ -59,6 +59,9 @@ tests/test_sparc tests/test_systemz tests/test_xcore tests/*.static +tests/test_basic +tests/test_customized_mnem + # vim tmp file *.swp @@ -89,7 +92,7 @@ xcode/Capstone.xcodeproj/project.xcworkspace/xcuserdata test_arm_regression test_arm_regression.o fuzz_harness -fuzz_harness.o +test_iter_benchmark *.s diff --git a/suite/benchmark/test_iter_benchmark.c b/suite/benchmark/test_iter_benchmark.c index 16356112e5..0c04b8f0bc 100644 --- a/suite/benchmark/test_iter_benchmark.c +++ b/suite/benchmark/test_iter_benchmark.c @@ -78,7 +78,7 @@ static void test() int maxcount = 10000000; insn = cs_malloc(handle); for (i = 0; i < maxcount;) { - code = X86_CODE32; + code = (const uint8_t *)X86_CODE32; address = 0x1000; size = sizeof(X86_CODE32) - 1; while(cs_disasm_iter(handle, &code, &size, &address, insn)) {