Browse Source

* Merging revisions r45264 from trunk:
------------------------------------------------------------------------
r45264 | michael | 2020-05-05 11:52:02 +0200 (Tue, 05 May 2020) | 1 line

* CeateArray uses 0-based loop
------------------------------------------------------------------------

git-svn-id: branches/fixes_3_2@46628 -

michael 5 years ago
parent
commit
ed3f8f66f1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/fcl-json/src/fpjsontopas.pp

+ 1 - 1
packages/fcl-json/src/fpjsontopas.pp

@@ -743,7 +743,7 @@ begin
   AddLn('');
   AddLn('');
   AddLn('begin');
   AddLn('begin');
   Indent;
   Indent;
-  AddLn('For I:=0 to Length(anArray) do');
+  AddLn('For I:=0 to Length(anArray)-1 do');
   Indent;
   Indent;
   if IM.JSONType=jtObject then
   if IM.JSONType=jtObject then
     AddLn('FreeAndNil(anArray[I]);')
     AddLn('FreeAndNil(anArray[I]);')