Sfoglia il codice sorgente

* fix high value in pointer to array conversion

git-svn-id: trunk@8407 -
peter 18 anni fa
parent
commit
703158292b
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      compiler/symdef.pas

+ 1 - 1
compiler/symdef.pas

@@ -2148,7 +2148,7 @@ implementation
     constructor tarraydef.create_from_pointer(def:tdef);
       begin
          { use -1 so that the elecount will not overflow }
-         self.create(0,high(aint-1),s32inttype);
+         self.create(0,high(aint)-1,s32inttype);
          arrayoptions:=[ado_IsConvertedPointer];
          setelementdef(def);
       end;