Przeglądaj źródła

* fix test for targets with FPC_COMP_IS_INT64 defined

florian 3 lat temu
rodzic
commit
5d9968366b
1 zmienionych plików z 4 dodań i 0 usunięć
  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);
 begin
   inherited;
+{$if defined(FPC_COMP_IS_INT64)}
+  F:=Round(4.56);
+{$else defined(FPC_COMP_IS_INT64)}
   F:=4.56;
+{$endif defined(FPC_COMP_IS_INT64)}
 end;
 
 { TCurrencyComponent }