浏览代码

* fix test for targets with FPC_COMP_IS_INT64 defined

florian 3 年之前
父节点
当前提交
5d9968366b
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      packages/fcl-json/tests/testcomps.pas

+ 4 - 0
packages/fcl-json/tests/testcomps.pas

@@ -659,7 +659,11 @@ end;
 constructor TCompComponent.Create(AOwner: TComponent);
 constructor TCompComponent.Create(AOwner: TComponent);
 begin
 begin
   inherited;
   inherited;
+{$if defined(FPC_COMP_IS_INT64)}
+  F:=Round(4.56);
+{$else defined(FPC_COMP_IS_INT64)}
   F:=4.56;
   F:=4.56;
+{$endif defined(FPC_COMP_IS_INT64)}
 end;
 end;
 
 
 { TCurrencyComponent }
 { TCurrencyComponent }