Browse Source

* an int2int type conversion doesn't retain the value location in
case of a bitpacked access

git-svn-id: trunk@14911 -

Jonas Maebe 15 years ago
parent
commit
650ba6d50f
1 changed files with 1 additions and 0 deletions
  1. 1 0
      compiler/ncnv.pas

+ 1 - 0
compiler/ncnv.pas

@@ -3004,6 +3004,7 @@ implementation
                 (
                  (convtype=tc_int_2_int) and
                  (
+                  not is_bitpacked_access(left) and
                   (resultdef.size=left.resultdef.size) or
                   ((m_tp7 in current_settings.modeswitches) and
                    (resultdef.size<left.resultdef.size))