2
0
Эх сурвалжийг харах

Fixed generation of struct multi array. Resolves #604.

Brucey 2 жил өмнө
parent
commit
cc6c1ccb15
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  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
 				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
 				Return "bbArrayNew" + Bra(TransArrayType(expr.ty) + ", " + expr.expr.length + ", " + s)
 			End If