Browse Source

Don't cast to void. Fixes #341.

woollybah 7 years ago
parent
commit
32f564ebbe
1 changed files with 1 additions and 1 deletions
  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