pass -1 to visit maxs to avoid confusion in CodeWindow and test output

This commit is contained in:
Stepan Koltsov
2012-01-12 01:25:34 +04:00
parent fbc7f60af1
commit 5e11003ea3
@@ -241,7 +241,7 @@ public class FunctionCodegen {
public static void endVisit(MethodVisitor mv, String description, PsiElement method) {
try {
mv.visitMaxs(0, 0);
mv.visitMaxs(-1, -1);
}
catch (Throwable t) {
throw new CompilationException("wrong code generated" + (description != null ? " for " + description : "") + t.getClass().getName() + " " + t.getMessage(), t, method);