mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-04-14 10:19:34 +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
|
||||
if TryStrToInt64(S,Result) then
|
||||
if not TryStrToInt64(S,Result) then
|
||||
Result:=ADefault;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user