summaryrefslogtreecommitdiff
path: root/plugins/androhelpers
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2012-12-29 00:22:21 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2012-12-29 00:22:21 (GMT)
commit555e12fb47d57f354bcdd7fdd54be7be50eeba4c (patch)
tree50fbc08c340a26f9c0a2dbc372a32a2a672f23b5 /plugins/androhelpers
parentcfeaf3f7585e17c549ac2f55dd06992c21503603 (diff)
Fixed an error about types of instructions and some GCC warnings.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@313 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'plugins/androhelpers')
-rw-r--r--plugins/androhelpers/switch.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/androhelpers/switch.c b/plugins/androhelpers/switch.c
index a6f6f5b..9e6f306 100644
--- a/plugins/androhelpers/switch.c
+++ b/plugins/androhelpers/switch.c
@@ -287,6 +287,9 @@ static void look_for_switch_instructions(const GDexMethod *method, GArchInstruct
iter != NULL;
iter = g_arch_instruction_get_next_iter(instrs, iter, end))
{
+ if (!G_IS_DALVIK_INSTRUCTION(iter))
+ continue;
+
opcode = g_dalvik_instruction_get_opcode(G_DALVIK_INSTRUCTION(iter));
if (opcode != DOP_PACKED_SWITCH && opcode != DOP_SPARSE_SWITCH)