Browse Source

* Fix compilation in unicode RTL

Michaël Van Canneyt 1 year ago
parent
commit
1f4b8a774f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/fcl-json/src/jsonscanner.pp

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

@@ -631,7 +631,7 @@ end;
 function TJSONScanner.GetAbsolutePos: Integer;
 
 begin
-  Result:=FCurPos-PChar(FSource);
+  Result:=FCurPos-PAnsiChar(FSource);
 end;
 
 procedure TJSONScanner.SetO(AIndex: TJSONOption; AValue: Boolean);