浏览代码

* also type casts to booleans benefit if unneeded type widenings are removed

git-svn-id: trunk@43344 -
florian 6 年之前
父节点
当前提交
e19eff1332
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      compiler/ncnv.pas

+ 1 - 0
compiler/ncnv.pas

@@ -3151,6 +3151,7 @@ implementation
         { must be done before code below, because we need the
           typeconversions for ordconstn's as well }
         case convtype of
+          tc_int_2_bool,
           tc_int_2_int:
             begin
               if (localswitches * [cs_check_range,cs_check_overflow] = []) and