From a86862df6d3c147ed62f98bd57f8445476eca928 Mon Sep 17 00:00:00 2001 From: jochen Date: Sat, 6 Mar 1999 21:37:28 +0000 Subject: [PATCH] fixed array of doubles git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@313 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/flow/CreateConstantArray.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/jode/jode/flow/CreateConstantArray.java b/jode/jode/flow/CreateConstantArray.java index 945df28..8483fcb 100644 --- a/jode/jode/flow/CreateConstantArray.java +++ b/jode/jode/flow/CreateConstantArray.java @@ -27,8 +27,8 @@ public class CreateConstantArray { public static boolean transform(InstructionContainer ic, StructuredBlock last) { /* Situation: - * PUSH new Array[] - * DUP + * PUSH new Array[] // or a constant array operator. + * DUP // duplicate array reference * PUSH index * PUSH value * stack_2[stack_1] = stack_0 @@ -67,8 +67,7 @@ public class CreateConstantArray { if (!indexOp.getType().isOfType(Type.tUInt) || dup.type != SpecialBlock.DUP - || dup.depth != 0 - || dup.count != store.getLValueType().stackSize() + || dup.depth != 0 || dup.count != 1 || !(sequBlock.subBlocks[0] instanceof InstructionBlock)) return false;