Skip to content

Commit

Permalink
Typo and tree-sitter init fix (#2358)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rot127 authored May 16, 2024
1 parent 9987b86 commit 5f11d3c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions arch/HPPA/HPPAInstPrinter.c
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ static void fill_operands(MCInst *MI, cs_hppa *hppa)

case 'w':
set_op_reg(hppa, MCOperand_getReg(op),
CS_AC_READ_WRTE);
CS_AC_READ_WRITE);
break;

case 'r':
Expand Down Expand Up @@ -834,4 +834,4 @@ void HPPA_printInst(MCInst *MI, SStream *O, void *Info)
}
}

#endif
#endif
2 changes: 1 addition & 1 deletion cstool/cstool_powerpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ void print_insn_detail_ppc(csh handle, cs_insn *ins)
case CS_AC_WRITE:
printf("\t\toperands[%u].access: WRITE\n", i);
break;
case CS_AC_READ_WRTE:
case CS_AC_READ_WRITE:
printf("\t\toperands[%u].access: READ | WRITE\n", i);
break;
}
Expand Down
2 changes: 1 addition & 1 deletion include/capstone/cs_operand.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ typedef enum cs_ac_type {
CS_AC_INVALID = 0, ///< Uninitialized/invalid access type.
CS_AC_READ = 1 << 0, ///< Operand read from memory or register.
CS_AC_WRITE = 1 << 1, ///< Operand write to memory or register.
CS_AC_READ_WRTE =
CS_AC_READ_WRITE =
CS_AC_READ |
CS_AC_WRITE, ///< Operand reads and writes from/to memory or register.
} cs_ac_type;
Expand Down
2 changes: 1 addition & 1 deletion suite/auto-sync/src/autosync/cpptranslator/Configurator.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def load_config(self) -> None:
self.config = conf

def ts_set_cpp_language(self) -> None:
self.ts_cpp_lang = Language(ts_cpp.language(), "cpp")
self.ts_cpp_lang = Language(ts_cpp.language())

def init_parser(self) -> None:
log.debug("Init parser")
Expand Down

0 comments on commit 5f11d3c

Please sign in to comment.