Browse Source

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

git-svn-id: trunk@43344 -
florian 5 years ago
parent
commit
e19eff1332
1 changed files with 1 additions and 0 deletions
  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