Skip to content

Commit

Permalink
fixed coverity and typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmacete authored and radare committed Feb 21, 2016
1 parent 522d30a commit 01a7a3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libr/anal/p/anal_arm_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,11 @@ static const char *arg(RAnal *a, csh *handle, cs_insn *insn, char *buf, int n) {
#define SHIFTED_REG64_APPEND(sb, n) shifted_reg64_append(sb, handle, insn, n)


static char* shifted_reg64_append(RStrBuf *sb, csh *handle, cs_insn *insn, int n) {
static void shifted_reg64_append(RStrBuf *sb, csh *handle, cs_insn *insn, int n) {
if (insn->detail->arm64.operands[n].shift.type != ARM64_SFT_ASR) {
r_strbuf_appendf (sb, "%d,%s,%s", LSHIFT2_64(n), REG64(n), DECODE_SHIFT64(n));
} else {
/* ASR: add the missing zeroes if negative */
/* ASR: add the missing ones if negative */
ut64 missing_ones = bitmask_by_width[LSHIFT2_64(n)-1] << (REGSIZE64(n)*8 - LSHIFT2_64(n));
r_strbuf_appendf (sb, "%d,%s,%s,1,%s,<<<,1,&,?{,%"PFMT64u",}{,0,},|",
LSHIFT2_64(n), REG64(n), DECODE_SHIFT64(n), REG64(n), missing_ones);
Expand Down

0 comments on commit 01a7a3f

Please sign in to comment.