* ILGenerator.cs: stack size check fix.
svn path=/trunk/mcs/; revision=5830
+Tue Jul 16 19:32:08 CEST 2002 Paolo Molaro <lupus@ximian.com>
+
+ * ILGenerator.cs: stack size check fix.
+
Sat Jul 13 17:30:51 CEST 2002 Paolo Molaro <lupus@ximian.com>
* AssemblyBuilder.cs: add also the enum_type for compiling corlib.
if (method is MethodBuilder)
add_token_fixup (method);
emit_int (token);
- if (method.ReturnType == void_type)
- cur_stack --;
+ if (method.ReturnType != void_type)
+ cur_stack ++;
ParameterInfo[] mparams = method.GetParameters();
if (mparams != null)
cur_stack -= mparams.Length;