Преглед изворни кода

* convert the index for open arrays to ptr(u/s)inttype instead of to
(s/u)inttype (as in r32745)

git-svn-id: trunk@34057 -

Jonas Maebe пре 9 година
родитељ
комит
18639304e1
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      compiler/nmem.pas

+ 2 - 2
compiler/nmem.pas

@@ -933,9 +933,9 @@ implementation
                    begin
                      if is_signed(right.resultdef) and
                         not is_constnode(right) then
-                       inserttypeconv(right,sinttype)
+                       inserttypeconv(right,ptrsinttype)
                      else
-                       inserttypeconv(right,uinttype)
+                       inserttypeconv(right,ptruinttype)
                    end
                  else if is_special_array(left.resultdef) then
                    {Arrays without a high bound (dynamic arrays, open arrays) are zero based,