mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-08-18 02:49:09 +02:00
* Fix strtoint64def
This commit is contained in:
parent
ff0cbf12c8
commit
1e31931375
@ -3867,7 +3867,7 @@ function StrToInt64Def(const S: String; ADefault: NativeLargeInt
|
|||||||
|
|
||||||
|
|
||||||
begin
|
begin
|
||||||
if TryStrToInt64(S,Result) then
|
if not TryStrToInt64(S,Result) then
|
||||||
Result:=ADefault;
|
Result:=ADefault;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user