Skip to content

Commit

Permalink
fix an warning in test_iter_benchmark.c
Browse files Browse the repository at this point in the history
  • Loading branch information
aquynh committed Sep 30, 2015
1 parent 6960082 commit 5e94dba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion suite/benchmark/test_iter_benchmark.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 5e94dba

Please sign in to comment.