Przeglądaj źródła

Don't cast structs.

Brucey 4 lat temu
rodzic
commit
282f50e435
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      ctranslator.bmx

+ 1 - 1
ctranslator.bmx

@@ -803,7 +803,7 @@ t:+"NULLNULLNULL"
 		Local initTrans:String
 		If outputInit Then
 			Local cast:String
-			If TObjectType(decl.ty) Then
+			If TObjectType(decl.ty) And Not TObjectType(decl.ty).classDecl.IsStruct() Then
 				cast = Bra(TransType(decl.ty, ""))
 			End If