Explorar el Código

More compiler warning fixes.

Brucey hace 4 años
padre
commit
3cc480ece7
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      ctranslator.bmx

+ 3 - 3
ctranslator.bmx

@@ -647,7 +647,7 @@ Type TCTranslator Extends TTranslator
 
 					' Object -> Byte Ptr
 					If IsPointerType(ty, TType.T_BYTE) And TObjectType(arg.exprType) Then
-						t:+ varRef + Bra("bbObjectToFieldOffset" + Bra(arg.Trans()))
+						t:+ varRef + Bra("bbObjectToFieldOffset" + Bra("(BBObject*)" + arg.Trans()))
 						Continue
 					End If
 
@@ -5088,9 +5088,9 @@ End Rem
 			Next
 			Emit t + "};"
 		Else
-			t :+ " = "
+			t :+ " = " + Bra(TransObject(classdecl))
 			If ClassHasObjectField(classDecl) Then
-				t :+ Bra(TransObject(classdecl)) + "bbObjectNewNC"
+				t :+ "bbObjectNewNC"
 			Else
 				t :+ "bbObjectAtomicNewNC"
 			End If