Skip to content

Commit 2f401d1

Browse files
moste00Rot127
andcommitted
Update cstool/cstool.c
Co-authored-by: Rot127 <45763064+Rot127@users.noreply.github.com>
1 parent 4791092 commit 2f401d1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cstool/cstool.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ static struct {
2121
cs_arch archs[CS_ARCH_MAX];
2222
cs_opt_value opt;
2323
cs_mode mode;
24-
cs_opt_type type;
24+
cs_opt_type opt_type;
2525
} all_opts[] = {
2626
// cs_opt_value only
2727
{ "+att",
@@ -916,7 +916,7 @@ static void enable_additional_options(csh handle, const char *input,
916916
for (j = 0; j < CS_ARCH_MAX; j++) {
917917
if (arch == all_opts[i].archs[j]) {
918918
cs_option(handle,
919-
all_opts[i].type ? all_opts[i].type :
919+
all_opts[i].opt_type ? all_opts[i].opt_type :
920920
CS_OPT_SYNTAX,
921921
all_opts[i].opt);
922922
break;

0 commit comments

Comments
 (0)