浏览代码

* Fix strtoint64def

michael 6 年之前
父节点
当前提交
1e31931375
共有 1 个文件被更改,包括 1 次插入1 次删除
  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
-  if TryStrToInt64(S,Result) then
+  if not TryStrToInt64(S,Result) then
     Result:=ADefault;
 end;