浏览代码

Merge branch 'development' into java_vs_jvm

Rudy Ges 1 年之前
父节点
当前提交
255e5a5f58
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/generators/jvm/jvmFunctions.ml

+ 1 - 1
src/generators/jvm/jvmFunctions.ml

@@ -178,7 +178,7 @@ class typed_functions = object(self)
 		jm#finalize_arguments;
 		load();
 		jm#get_code#arraylength array_sig;
-		let cases = ExtList.List.init max_arity (fun i ->
+		let cases = ExtList.List.init (max_arity + 1) (fun i ->
 			[Int32.of_int i],(fun () ->
 				jm#load_this;
 				let args = ExtList.List.init i (fun index ->