Răsfoiți Sursa

Allow object varptr cast to pointer. Resolves #487

Brucey 5 ani în urmă
părinte
comite
e5965a15ad
1 a modificat fișierele cu 2 adăugiri și 0 ștergeri
  1. 2 0
      expr.bmx

+ 2 - 0
expr.bmx

@@ -1546,6 +1546,8 @@ Type TCastExpr Extends TExpr
 				End If
 			Else If TNumericType(src) And (src._flags & TType.T_VARPTR) Then
 				exprType = expr.exprType
+			Else If TObjectType(src) And (src._flags & TType.T_VARPTR) Then
+				exprType = expr.exprType
 			Else If TArrayType(src) Then
 			
 				' for functions and index access, use a new local variable