From 91aa1ef2fa9793a6327bb858eb60b42de8ba18d1 Mon Sep 17 00:00:00 2001 From: "JesusFreke@JesusFreke.com" Date: Wed, 23 Dec 2009 05:27:36 +0000 Subject: [PATCH] Use the correct comparison for the keys, when writing out a sparse switch data pseudo-instruction git-svn-id: https://smali.googlecode.com/svn/trunk@507 55b6fa8a-2a1e-11de-a435-ffa8d773f76a --- .../dexlib/Code/Format/SparseSwitchDataPseudoInstruction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dexlib/src/main/java/org/jf/dexlib/Code/Format/SparseSwitchDataPseudoInstruction.java b/dexlib/src/main/java/org/jf/dexlib/Code/Format/SparseSwitchDataPseudoInstruction.java index 04158a98..822c54fd 100644 --- a/dexlib/src/main/java/org/jf/dexlib/Code/Format/SparseSwitchDataPseudoInstruction.java +++ b/dexlib/src/main/java/org/jf/dexlib/Code/Format/SparseSwitchDataPseudoInstruction.java @@ -107,7 +107,7 @@ public class SparseSwitchDataPseudoInstruction extends Instruction implements Mu for (int i = 1; i < keys.length; i++) { key = keys[i]; - assert key <= keys[i - 1]; + assert key >= keys[i - 1]; out.writeInt(key); }