* Fix compilation in unicode RTL

This commit is contained in:
Michaël Van Canneyt 2023-11-27 09:51:05 +01:00
parent a3134fcbfd
commit b6a0988559

View File

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