Sfoglia il codice sorgente

Allow object varptr cast to pointer. Resolves #487

Brucey 5 anni fa
parent
commit
e5965a15ad
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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