Browse Source

* Fix strtoint64def

michael 5 years ago
parent
commit
1e31931375
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/rtl/sysutils.pas

+ 1 - 1
packages/rtl/sysutils.pas

@@ -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;