From d00beba7674b0963070579ea580871f56e969e20 Mon Sep 17 00:00:00 2001 From: pancake Date: Mon, 7 Mar 2016 17:06:26 +0100 Subject: [PATCH] Fix arm.cs thumb thing --- libr/asm/p/asm_arm_cs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libr/asm/p/asm_arm_cs.c b/libr/asm/p/asm_arm_cs.c index 226cd529b1..8ddd3e9451 100644 --- a/libr/asm/p/asm_arm_cs.c +++ b/libr/asm/p/asm_arm_cs.c @@ -24,7 +24,7 @@ static int disassemble(RAsm *a, RAsmOp *op, const ut8 *buf, int len) { } // replace this with the asm.features? - if (a->cpu && strstr (a->cpu, "no-mclass")) + if (!a->cpu || !strstr (a->cpu, "no-mclass")) mode |= CS_MODE_MCLASS; // mclass by default if (a->cpu && strstr (a->cpu, "v8")) mode |= CS_MODE_V8;