Browse Source

* Fix compilation in unicode RTL

Michaël Van Canneyt 1 year ago
parent
commit
b6a0988559
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/vcl-compat/src/system.json.pp

+ 1 - 1
packages/vcl-compat/src/system.json.pp

@@ -754,7 +754,7 @@ end;
 function TJSONValue.GetValueA(const aIndex: Integer): TJSONValue;
 function TJSONValue.GetValueA(const aIndex: Integer): TJSONValue;
 
 
 begin
 begin
-  Result:=FindValue(Sysutils.Format('[%s]',[aIndex]));
+  Result:=FindValue({$IFDEF FPC_DOTTEDUNITS}System.{$ENDIF}SysUtils.Format('[%s]',[aIndex]));
   if Result = nil then
   if Result = nil then
     raise EJSONException.CreateFmt(SErrIndexNotFound,[aIndex]);
     raise EJSONException.CreateFmt(SErrIndexNotFound,[aIndex]);
 end;
 end;