Browse Source

fcl-base: clean up

mattias 6 years ago
parent
commit
6c78a2162f
1 changed files with 3 additions and 1 deletions
  1. 3 1
      packages/fcl-base/fpexprpars.pas

+ 3 - 1
packages/fcl-base/fpexprpars.pas

@@ -1323,7 +1323,8 @@ begin
   Result:=FChar;
 end;
 
-procedure Val(const S: string; out V: TExprFloat; out Code: Integer);
+{$ifndef pas2js}
+procedure Val(const S: string; out V: TExprFloat; out Code: Integer); overload;
 var
   L64: NativeInt;
 begin
@@ -1336,6 +1337,7 @@ begin
   else
     System.Val(S, V, Code);
 end;
+{$endif}
 
 Function TFPExpressionScanner.DoNumber(AKind: TNumberKind) : TTokenType;