Browse Source

* 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 years ago
parent
commit
18639304e1
1 changed files with 2 additions and 2 deletions
  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,