Browse Source

* CeateArray uses 0-based loop

git-svn-id: trunk@45264 -
michael 5 năm trước cách đây
mục cha
commit
a03ea37cfc
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      packages/fcl-json/src/fpjsontopas.pp

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

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