Explorar el Código

Don't cast to void. Fixes #341.

woollybah hace 7 años
padre
commit
32f564ebbe
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      expr.bmx

+ 1 - 1
expr.bmx

@@ -1238,7 +1238,7 @@ Type TCastExpr Extends TExpr
 
 			EndIf
 			
-			If TNullType(src) Then
+			If TNullType(src) And Not TVoidType(ty) Then
 				exprType = ty
 			End If