Преглед на файлове

* when explicitly casting a variable, it might be sufficient if it is const_regable

git-svn-id: trunk@36137 -
florian преди 8 години
родител
ревизия
c7ba611bf9
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      compiler/ncnv.pas

+ 1 - 0
compiler/ncnv.pas

@@ -3846,6 +3846,7 @@ implementation
         if nf_explicit in flags then
           { check if the result could be in a register }
           if (not(tstoreddef(resultdef).is_intregable) and
+              not(tstoreddef(resultdef).is_const_intregable) and
               not(tstoreddef(resultdef).is_fpuregable)) or
              ((left.resultdef.typ = floatdef) and
               (resultdef.typ <> floatdef))  then