From 77831e2c0496f1ef4319d7fe9ec21b4e3360c2b4 Mon Sep 17 00:00:00 2001 From: lzutao Date: Wed, 18 Sep 2019 14:58:29 +0700 Subject: [PATCH] Fix & has lower precedence than == (#15067) --- libr/asm/arch/i4004/i4004dis.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libr/asm/arch/i4004/i4004dis.c b/libr/asm/arch/i4004/i4004dis.c index d2d0a4dbe9..adac427b42 100644 --- a/libr/asm/arch/i4004/i4004dis.c +++ b/libr/asm/arch/i4004/i4004dis.c @@ -74,11 +74,11 @@ static int i4004dis (RAsmOp *op, const ut8 *buf, int len) { buf_asm = sdb_fmt ("fim r%d, 0x%02x", (low & 0xe), buf[1]); } break; - case 3: - if (low & 1 == 1) { + case 3: + if ((low & 1) == 1) { buf_asm = sdb_fmt ("jin r%d", (low & 0xe)); } else { - buf_asm = sdb_fmt ("fin r%d", (low & 0xe)); + buf_asm = sdb_fmt ("fin r%d", (low & 0xe)); } break; case 4: buf_asm = sdb_fmt ("jun 0x%03x", ((ut16)(low<<8) | buf[1])); break;