Browse Source

Fixed issue with args extending.

woollybah 10 years ago
parent
commit
0750e5ed20
2 changed files with 5 additions and 3 deletions
  1. 4 2
      expr.bmx
  2. 1 1
      options.bmx

+ 4 - 2
expr.bmx

@@ -144,8 +144,10 @@ Type TExpr
 
 				args[i]=args[i].Cast( funcDecl.argDecls[i].ty )
 			Else If funcDecl.argDecls[i].init
-				' extend args to add default init entry
-				args = args[..i + 1]
+				If i = args.length Then
+					' extend args to add default init entry
+					args = args[..i + 1]
+				End If
 				args[i]=funcDecl.argDecls[i].init
 			Else
 				Err "Missing function argument '"+funcDecl.argDecls[i].ident+"'."

+ 1 - 1
options.bmx

@@ -25,7 +25,7 @@ SuperStrict
 
 Import "base.configmap.bmx"
 
-Const version:String = "0.46"
+Const version:String = "0.47"
 
 Const BUILDTYPE_APP:Int = 0
 Const BUILDTYPE_MODULE:Int = 1