Răsfoiți Sursa

Fixed generation of struct multi array. Resolves #604.

Brucey 2 ani în urmă
părinte
comite
cc6c1ccb15
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      ctranslator.bmx

+ 1 - 1
ctranslator.bmx

@@ -1867,7 +1867,7 @@ t:+"NULLNULLNULL"
 
 
 			If TObjectType(expr.ty) And TObjectType(expr.ty).classdecl.IsStruct() And Not IsPointerType(expr.ty) Then
 			If TObjectType(expr.ty) And TObjectType(expr.ty).classdecl.IsStruct() And Not IsPointerType(expr.ty) Then
 				Return "bbArrayNewStruct" + Bra(TransArrayType(expr.ty) + ", sizeof" + Bra(TransObject(TObjectType(expr.ty).classdecl)) + ..
 				Return "bbArrayNewStruct" + Bra(TransArrayType(expr.ty) + ", sizeof" + Bra(TransObject(TObjectType(expr.ty).classdecl)) + ..
-						", " + expr.expr.length + ", " + s)
+					", _" + TObjectType(expr.ty).classdecl.munged + "_New, " + expr.expr.length + ", " + s)
 			Else
 			Else
 				Return "bbArrayNew" + Bra(TransArrayType(expr.ty) + ", " + expr.expr.length + ", " + s)
 				Return "bbArrayNew" + Bra(TransArrayType(expr.ty) + ", " + expr.expr.length + ", " + s)
 			End If
 			End If