浏览代码

Don't cast to void. Fixes #341.

woollybah 7 年之前
父节点
当前提交
32f564ebbe
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      expr.bmx

+ 1 - 1
expr.bmx

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